feat(users): add user administration and password management
This commit is contained in:
parent
47f54d3461
commit
b584e60273
16 changed files with 720 additions and 22 deletions
|
|
@ -16,10 +16,12 @@ def seed_admin() -> None:
|
|||
session.add(
|
||||
User(
|
||||
email=settings.admin_email.lower(),
|
||||
full_name="Validation Suite Administrator",
|
||||
role=UserRole.admin,
|
||||
first_name="Validation Suite",
|
||||
last_name="Administrator",
|
||||
role=UserRole.ADMIN.value,
|
||||
password_hash=hash_password(settings.admin_password),
|
||||
is_active=True,
|
||||
must_change_password=False,
|
||||
)
|
||||
)
|
||||
session.commit()
|
||||
|
|
@ -27,4 +29,3 @@ def seed_admin() -> None:
|
|||
|
||||
if __name__ == "__main__":
|
||||
seed_admin()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue