summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/authtest.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-01 08:15:49 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-09-24 20:29:20 +0200
commit25b8eaf83e681a9322cffe61aad5254bcbe0c917 (patch)
tree8ccfe8a892e669b85b5930a43fd2cbb0017c807d /ipsilon/login/authtest.py
parenta511d8ab35cc0f2872eac640ed4120766f92704a (diff)
downloadipsilon-25b8eaf83e681a9322cffe61aad5254bcbe0c917.tar.gz
ipsilon-25b8eaf83e681a9322cffe61aad5254bcbe0c917.tar.xz
ipsilon-25b8eaf83e681a9322cffe61aad5254bcbe0c917.zip
Use helper cookie to remember the username
This makes the login page a lot more friendy Available only over HTTPS Max age set to 15 days Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/login/authtest.py')
-rwxr-xr-xipsilon/login/authtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipsilon/login/authtest.py b/ipsilon/login/authtest.py
index df826c8..8eae0b6 100755
--- a/ipsilon/login/authtest.py
+++ b/ipsilon/login/authtest.py
@@ -33,7 +33,7 @@ class TestAuth(LoginFormBase):
if username and password:
if password == 'ipsilon':
cherrypy.log("User %s successfully authenticated." % username)
- return self.lm.auth_successful(username)
+ return self.lm.auth_successful(username, 'password')
else:
cherrypy.log("User %s failed authentication." % username)
error = "Authentication failed"