20160116
This commit is contained in:
@@ -12,7 +12,10 @@ def create_admin_user():
|
||||
# Check if user exists
|
||||
user = db.query(User).filter(User.email == email).first()
|
||||
if user:
|
||||
print(f"User {email} already exists.")
|
||||
print(f"User {email} already exists. Updating password...")
|
||||
user.password_hash = get_password_hash(password)
|
||||
db.commit()
|
||||
print(f"Password updated for {email} to: {password}")
|
||||
return
|
||||
|
||||
# Create new admin user
|
||||
|
||||
Reference in New Issue
Block a user