Update ldap_auth.py
In regards to comments in: https://github.com/BuhtigithuB/web2py/commit/0036d9c45bdf476d858fa00dd69e854c4623858b And: https://github.com/web2py/web2py/issues/1178
This commit is contained in:
@@ -421,7 +421,8 @@ def ldap_auth(server='ldap',
|
||||
store_user_mail = None
|
||||
update_or_insert_values = {'first_name': store_user_firstname,
|
||||
'last_name': store_user_lastname,
|
||||
'email': store_user_mail}
|
||||
'email': store_user_mail,
|
||||
'username': username}
|
||||
if '@' not in username:
|
||||
# user as username
|
||||
# ################
|
||||
|
||||
Reference in New Issue
Block a user