fixed use of whitespaces

This commit is contained in:
mdipierro
2017-08-01 10:26:33 -05:00
parent 7088b74d42
commit 213c4ee7d1
6 changed files with 16 additions and 16 deletions
+3 -3
View File
@@ -1792,7 +1792,7 @@ class Auth(AuthAPI):
servicevalidate='serviceValidate', servicevalidate='serviceValidate',
proxyvalidate='proxyValidate', proxyvalidate='proxyValidate',
logout='logout'), logout='logout'),
cas_create_user=True, cas_create_user=True,
extra_fields={}, extra_fields={},
actions_disabled=[], actions_disabled=[],
controller=controller, controller=controller,
@@ -2285,7 +2285,7 @@ class Auth(AuthAPI):
If the user doesn't yet exist, then they are created. If the user doesn't yet exist, then they are created.
""" """
table_user = self.table_user() table_user = self.table_user()
create_user = self.settings.cas_create_user create_user = self.settings.cas_create_user
user = None user = None
checks = [] checks = []
# make a guess about who this user is # make a guess about who this user is
@@ -2318,7 +2318,7 @@ class Auth(AuthAPI):
update_keys[key] = keys[key] update_keys[key] = keys[key]
user.update_record(**update_keys) user.update_record(**update_keys)
elif checks: elif checks:
if create_user is False: if create_user is False:
# Remove current open session a send message # Remove current open session a send message
self.logout(next=None, onlogout=None, log=None) self.logout(next=None, onlogout=None, log=None)
raise HTTP(403, "Forbidden. User need to be created first.") raise HTTP(403, "Forbidden. User need to be created first.")