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:
parent
929e589b45
commit
996b429f85
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user