mirror of
https://github.com/veops/cmdb.git
synced 2025-08-08 15:07:55 +08:00
pref(api): import and export of CIType templates
pref(api): import and export of CIType templates
This commit is contained in:
@@ -145,7 +145,7 @@ class User(CRUDModel, SoftDeleteMixin):
|
||||
class RoleQuery(BaseQuery):
|
||||
|
||||
def authenticate(self, login, password):
|
||||
role = self.filter(Role.name == login).first()
|
||||
role = self.filter(Role.name == login).filter(Role.deleted.is_(False)).first()
|
||||
if role:
|
||||
authenticated = role.check_password(password)
|
||||
|
||||
|
Reference in New Issue
Block a user