🐛 fix(utils.py): remove unnecessary password verification when creating a superuser
💡 refactor(utils.py): simplify logic for creating a superuser by removing redundant password verification
This commit is contained in:
parent
3403ee3c1c
commit
203929914e
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ def get_or_create_super_user(session: Session, username, password, is_default):
|
|||
|
||||
user = session.query(User).filter(User.username == username).first()
|
||||
|
||||
if user and user.is_superuser and verify_password(password, user.password):
|
||||
if user and user.is_superuser:
|
||||
return None # Superuser already exists
|
||||
|
||||
if user and is_default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue