mirror of
https://github.com/aronwk-aaron/MSState-Library-ETD.git
synced 2026-01-29 00:49:25 -06:00
Made it where the profiles display the user's info and then then user can edit their info
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
# Settings common to all environments (development|staging|production)
|
|
# Place environment specific settings in env_settings.py
|
|
# An example file (env_settings_example.py) can be used as a starting point
|
|
|
|
# Application settings
|
|
APP_NAME = "MSState Library ETD System"
|
|
APP_SYSTEM_ERROR_SUBJECT_LINE = APP_NAME + " system error"
|
|
|
|
# Flask settings
|
|
CSRF_ENABLED = True
|
|
|
|
# Flask-SQLAlchemy settings
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
|
|
|
# Flask-User settings
|
|
USER_APP_NAME = APP_NAME
|
|
USER_ENABLE_CHANGE_PASSWORD = True # Allow users to change their password
|
|
USER_ENABLE_CHANGE_USERNAME = False # Allow users to change their username
|
|
USER_ENABLE_CONFIRM_EMAIL = True # Force users to confirm their email
|
|
USER_ENABLE_FORGOT_PASSWORD = True # Allow users to reset their passwords
|
|
USER_ENABLE_EMAIL = True # Register with Email
|
|
USER_ENABLE_REGISTRATION = True # Allow new users to register
|
|
USER_REQUIRE_RETYPE_PASSWORD = True # Prompt for `retype password` in:
|
|
USER_ENABLE_USERNAME = False # Register and Login with username
|
|
USER_PASSLIB_CRYPTCONTEXT_SCHEMES = ['argon2'] # argon2 for hashing
|
|
|
|
USER_AFTER_LOGIN_ENDPOINT = "main.index"
|
|
USER_AFTER_LOGOUT_ENDPOINT = "main.signed_out"
|
|
USER_AFTER_EDIT_USER_PROFILE_ENDPOINT = 'main.profile'
|