mirror of
https://github.com/joaovitoriasilva/endurain.git
synced 2026-05-03 03:00:41 -04:00
[frontend] Bumped version to v0.2.0 [backend] Bumped version to v0.2.0 [frontend] Moved back button logic to separate component [frontend] Created sidebar logic for settings page [frontend] User view in settings is now able to create new user, list current users and change user password
17 lines
410 B
Python
17 lines
410 B
Python
import os
|
|
|
|
# Constant related to version
|
|
API_VERSION="v0.2.0"
|
|
|
|
# JWT Token constants
|
|
JWT_ALGORITHM = os.environ.get("ALGORITHM")
|
|
JWT_EXPIRATION_IN_MINUTES = int(os.environ.get("ACCESS_TOKEN_EXPIRE_MINUTES"))
|
|
JWT_SECRET_KEY = os.environ.get("SECRET_KEY")
|
|
|
|
# Constants related to user access types
|
|
REGULAR_ACCESS = 1
|
|
ADMIN_ACCESS = 2
|
|
|
|
# Constants related to user active status
|
|
USER_ACTIVE = 1
|
|
USER_NOT_ACTIVE = 2 |