userpage: add password change card, validation, rearrange page
functionality not done yet, just comitting here because there were lots of adjustments to layout stuff, accomodating for most combinations of card presence/size.
This commit is contained in:
@@ -183,10 +183,11 @@ func (app *appContext) MyUserPage(gc *gin.Context) {
|
||||
"notifications": notificationsEnabled,
|
||||
"username": !app.config.Section("email").Key("no_username").MustBool(false),
|
||||
"strings": app.storage.lang.User[lang].Strings,
|
||||
"validationStrings": app.storage.lang.User[lang].ValidationStrings,
|
||||
"validationStrings": app.storage.lang.User[lang].validationStringsJSON,
|
||||
"language": app.storage.lang.User[lang].JSON,
|
||||
"langName": lang,
|
||||
"jfLink": app.config.Section("ui").Key("redirect_url").String(),
|
||||
"requirements": app.validator.getCriteria(),
|
||||
}
|
||||
if telegramEnabled {
|
||||
data["telegramUsername"] = app.telegram.username
|
||||
|
||||
Reference in New Issue
Block a user