add admin page to manage private data

This commit is contained in:
Carl Zhang
2025-10-13 23:50:53 -05:00
parent c4066ed15e
commit 421d263b6b
9 changed files with 289 additions and 3 deletions

32
webpages/users.yaml Normal file
View File

@@ -0,0 +1,32 @@
cookie:
expiry_days: 30
key: buffteks.org # To be filled with any string
name: buffteks.org # To be filled with any string
credentials:
usernames:
czhang:
email: czhang@wtamu.edu
failed_login_attempts: 0 # Will be managed automatically
first_name: Carl
last_name: Zhang
logged_in: False # Will be managed automatically
password: 1992Carl@* # Will be hashed automatically
roles: # Optional
- admin
- editor
- viewer
# oauth2: # Optional
# google: # Follow instructions: https://developers.google.com/identity/protocols/oauth2
# client_id: # To be filled
# client_secret: # To be filled
# redirect_uri: # URL to redirect to after OAuth2 authentication
# microsoft: # Follow instructions: https://learn.microsoft.com/en-us/graph/auth-register-app-v2
# client_id: # To be filled
# client_secret: # To be filled
# redirect_uri: # URL to redirect to after OAuth2 authentication
# tenant_id: # To be filled
# pre-authorized: # Optional
# emails:
# - melsby@gmail.com
# api_key: # Optional - register to receive a free API key: https://stauthenticator.com