summaryrefslogtreecommitdiff
path: root/htroot/index.html
diff options
context:
space:
mode:
authorluccioman <luccioman@users.noreply.github.com>2017-10-26 07:51:18 +0200
committerluccioman <luccioman@users.noreply.github.com>2017-10-26 07:51:18 +0200
commit8e732d437c9909ebde32d26549731e766e6ef427 (patch)
tree9b59fe75819ed815cca9253aa8cde6fd61c09868 /htroot/index.html
parent5161451a3549516df8542711830162bc6383b3cf (diff)
Enable HTTP Digest authentication for non admin users.
Also ensure authentication is not lost by Digest timeout when navigating between index.html and search results page. This way, running searches with extended features on a remote peer or a password protected peer works with a regular user (with "Extended search" rights). When authenticating on the search page with a user without "Extended search" rights, it appears as authenticated, but has just its usual access to the public search features.
Diffstat (limited to 'htroot/index.html')
-rw-r--r--htroot/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/htroot/index.html b/htroot/index.html
index 5af481042..b43184f83 100644
--- a/htroot/index.html
+++ b/htroot/index.html
@@ -61,9 +61,9 @@
<button id="Enter" name="Enter" class="btn btn-primary" type="submit">Search</button>
</div>
</div>
- #(authorized)#::
+ #(authSearch)#::
<input type="hidden" name="auth" id="auth" value=""/>
- #(/authorized)#
+ #(/authSearch)#
<input type="hidden" name="verify" value="#[search.verify]#" />
#(searchdomswitches)#::
<div class="yacysearch">
@@ -72,7 +72,7 @@
#(searchaudio)#::<input type="radio" id="audio" name="contentdom" value="audio" #(check)#::checked="checked"#(/check)# />&nbsp;Audio&nbsp;&nbsp;#(/searchaudio)#
#(searchvideo)#::<input type="radio" id="video" name="contentdom" value="video" #(check)#::checked="checked"#(/check)# />&nbsp;Video&nbsp;&nbsp;#(/searchvideo)#
#(searchapp)#::<input type="radio" id="app" name="contentdom" value="app" #(check)#::checked="checked"#(/check)# />&nbsp;Applications#(/searchapp)#
- #(searchoptions)#&nbsp;&nbsp;<a href="index.html?searchoptions=1" onclick="this.href='index.html?searchoptions=1&amp;former='+document.getElementById('search').value+'&amp;contentdom='+radioValue(document.getElementById('searchform').contentdom);">more options...</a>::#(/searchoptions)#
+ #(searchoptions)#&nbsp;&nbsp;<a href="index.html?searchoptions=1#(authSearch)#::&auth#(/authSearch)#" onclick="this.href='index.html?searchoptions=1#(authSearch)#::&auth#(/authSearch)#&amp;former='+document.getElementById('search').value+'&amp;contentdom='+radioValue(document.getElementById('searchform').contentdom);">more options...</a>::#(/searchoptions)#
</div>
#(/searchdomswitches)#
<input type="hidden" name="nav" value="#[search.navigation]#" />