Commit 1a2e0897 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

try multiple logins

parent 483febc0
......@@ -38,7 +38,8 @@ let $uris := (doc('/db/sade-projects/textgrid/data/xml/agg/' || $agg)
let $lastMod := $uris ! xmldb:last-modified($f-indexproc:dataPath, . || '.xml')
return
if(not(xmldb:login($collection-uri, config:get('sade.user'), config:get("sade.password"))))
if(not(xmldb:login($collection-uri, config:get('sade.user'), config:get("sade.password")))
and not(xmldb:login($collection-uri, "admin", "")))
then error(QName("FONTANE", "INDEXVIEW1"), "unable to authenticate.")
else
if( xmldb:last-modified($collection-uri, $resource) gt max($lastMod) )
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment