summaryrefslogtreecommitdiff
path: root/swat/login.esp
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-05-30 12:21:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:17 -0500
commit419598e1d1043eb254e3c0af43c76d798fdb2b3b (patch)
treea2e783c9cd509019141a8389a12c17c0f38782c3 /swat/login.esp
parent0d00eba376b1bfae6ecdad500d2cb23305f6a349 (diff)
downloadsamba-419598e1d1043eb254e3c0af43c76d798fdb2b3b.tar.gz
samba-419598e1d1043eb254e3c0af43c76d798fdb2b3b.tar.bz2
samba-419598e1d1043eb254e3c0af43c76d798fdb2b3b.zip
r7106: the web interface now works completely with or without cookies. If you have cookies
they will be used, otherwise you will see URLs with ?SwatSessionId=XXX on the end. (This used to be commit 104d47a7458ecf03c0d5f969eaf2a98346928679)
Diffstat (limited to 'swat/login.esp')
-rw-r--r--swat/login.esp6
1 files changed, 4 insertions, 2 deletions
diff --git a/swat/login.esp b/swat/login.esp
index be5457fedd..9b41e2d54e 100644
--- a/swat/login.esp
+++ b/swat/login.esp
@@ -3,7 +3,9 @@
<%
var f = Form("login", 2, 1);
f.element[0].label = "Username";
+f.element[0].value = form['Username'];
f.element[1].label = "Password";
+f.element[1].value = form['Password'];
f.element[1].type = "password";
f.submit[0] = "Login";
@@ -23,9 +25,9 @@ display_form(f);
redirect them to the current page, which will now
show its true content */
if (request.REQUEST_URI == "/login.esp") {
- redirect("/");
+ redirect(session_uri("/"));
} else {
- redirect(request.REQUEST_URI);
+ redirect(session_uri(request.REQUEST_URI));
}
}
%>