summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/authpam.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/authpam.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/authpam.py')
-rwxr-xr-xipsilon/login/authpam.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipsilon/login/authpam.py b/ipsilon/login/authpam.py
index c88f0a0..58e07cf 100755
--- a/ipsilon/login/authpam.py
+++ b/ipsilon/login/authpam.py
@@ -49,7 +49,7 @@ class Pam(LoginFormBase):
if username and password:
user = self._authenticate(username, password)
if user:
- return self.lm.auth_successful(user)
+ return self.lm.auth_successful(user, 'password')
else:
error = "Authentication failed"
cherrypy.log.error(error)