1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-22 13:34:04 +03:00

* Fixed internal DB not validating groups of user at login (so user has no valid group, and can't log in)

This commit is contained in:
Adolfo Gómez 2012-09-21 10:33:42 +00:00
parent 929e589b45
commit 996b429f85

View File

@ -85,6 +85,7 @@ class InternalDBAuth(Authenticator):
usr = usr[0]
# Internal Db Auth has its own groups, and if it active it is valid
if usr.password == hashlib.sha1(credentials).hexdigest():
groupsManager.validate([g.name for g in usr.groups.all()])
return True
return False
except dbAuthenticator.DoesNotExist: