Add display name (first_name) shown instead of username on user-facing UI
All checks were successful
Docker / build (release) Successful in 8s

This commit is contained in:
krek0 2026-05-17 07:11:37 +02:00
parent 28f279a4ab
commit b57f9092aa
5 changed files with 21 additions and 3 deletions

View file

@ -290,6 +290,7 @@ ACCOUNT_EMAIL_VERIFICATION = config("EMAIL_VERIFICATION", default="mandatory")
ACCOUNT_AUTHENTICATION_METHOD = "username_email"
# ACCOUNT_LOGIN_METHODS = {'username', 'email'}
ACCOUNT_FORMS = {"signup": "photo21.forms.CustomSignupForm"}
ACCOUNT_USER_DISPLAY = lambda user: user.first_name or user.username
if OAUTH_ENABLED:
SOCIALACCOUNT_ONLY = OAUTH_ONLY