From 943158d19f879eb6ad515edeb59017671e4252c5 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 13 Nov 2014 10:18:05 +0100 Subject: Add support for Persona Identity Provider Signed-off-by: Patrick Uiterwijk Reviewed-by: Simo Sorce --- ipsilon/login/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ipsilon/login') diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py index b394fa0..ce921c5 100755 --- a/ipsilon/login/common.py +++ b/ipsilon/login/common.py @@ -179,16 +179,18 @@ class LoginFormBase(LoginPageBase): cookie = SecureCookie(USERNAME_COOKIE) cookie.receive() username = cookie.value - if username is None: - username = '' target = None if self.trans is not None: tid = self.trans.transaction_id target = self.trans.retrieve().get('login_target') + username = self.trans.retrieve().get('login_username') if tid is None: tid = '' + if username is None: + username = '' + context = { "title": 'Login', "action": '%s/%s' % (self.basepath, self.formpage), -- cgit