-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
634 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
from backend.database.core import db | ||
from backend.database import User, UserRole | ||
from backend.auth import user_manager | ||
from backend.database.models.partner import Partner, PartnerMember, MemberRole | ||
from backend.database.models.officer import Officer | ||
from backend.database.models.agency import Agency, Unit | ||
|
@@ -90,7 +88,7 @@ def create_seeds(): | |
create_user( | ||
User( | ||
email="[email protected]", | ||
password=user_manager.hash_password("password"), | ||
password_hash=User.hash_password("password"), | ||
role=UserRole.PUBLIC.value, | ||
first_name="Test", | ||
last_name="Example", | ||
|
@@ -100,7 +98,7 @@ def create_seeds(): | |
create_user( | ||
User( | ||
email="[email protected]", | ||
password=user_manager.hash_password("password"), | ||
password_hash=User.hash_password("password"), | ||
role=UserRole.CONTRIBUTOR.value, | ||
first_name="Contributor", | ||
last_name="Example", | ||
|
@@ -110,7 +108,7 @@ def create_seeds(): | |
create_user( | ||
User( | ||
email="[email protected]", | ||
password=user_manager.hash_password("password"), | ||
password_hash=User.hash_password("password"), | ||
role=UserRole.ADMIN.value, | ||
first_name="Admin", | ||
last_name="Example", | ||
|
@@ -120,7 +118,7 @@ def create_seeds(): | |
create_user( | ||
User( | ||
email="[email protected]", | ||
password=user_manager.hash_password("password"), | ||
password_hash=User.hash_password("password"), | ||
role=UserRole.PASSPORT.value, | ||
first_name="Passport", | ||
last_name="Example", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# flake8: noqa: F401 | ||
|
||
from .auth import user_manager, refresh_token | ||
from .auth import refresh_token | ||
from .jwt import jwt, min_role_required, blueprint_role_required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.