mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
make initial admin user verified by default - no need for email #36
This commit is contained in:
parent
1a50509465
commit
2481b49573
1 changed files with 1 additions and 2 deletions
|
@ -126,8 +126,7 @@ def register(app):
|
|||
admin_user = User(user_name=user_name, email=email, verification_token=verification_token)
|
||||
admin_user.set_password(password)
|
||||
admin_user.roles.append(admin_role)
|
||||
send_verification_email(admin_user)
|
||||
print("Check your email inbox for a verification link.")
|
||||
admin_user.verified = True
|
||||
|
||||
db.session.commit()
|
||||
print("Initial setup is finished.")
|
||||
|
|
Loading…
Add table
Reference in a new issue