mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Secure users API and handle manual password recovery.
This commit is contained in:
1 parent
c03226e368
commit
e28452f09a
7 files changed
+92
-39
No files matched your search
@@ -37,6 +37,7 @@ class User(BaseTable):
|
||||
is_active = Column(Boolean, default=True)
|
||||
is_superadmin = Column(Boolean, default=False)
|
||||
|
||||
|
||||
@event.listens_for(User.__table__, 'after_create')
|
||||
def create_default_super_admin(target, connection, **kw):
|
||||
|
||||
@@ -49,4 +50,4 @@ def create_default_super_admin(target, connection, **kw):
|
||||
)
|
||||
connection.execute(stmt)
|
||||
connection.commit()
|
||||
log.info("Default super admin account added")
|
||||
log.info("The default super admin account has been created in the database")
|
||||
Reference in new issue
Block a user