WIP new WebAdmin: profile, change password, message pages

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2024-01-18 19:18:57 +01:00
parent 87451560e3
commit 91802fad3e
19 changed files with 359 additions and 393 deletions

View File

@@ -54,6 +54,10 @@ const (
I18nAddUserTitle = "title.add_user"
I18nUpdateUserTitle = "title.update_user"
I18nTemplateUserTitle = "title.template_user"
I18nMaintenanceTitle = "title.maintenance"
I18nConfigsTitle = "title.configs"
I18nOAuth2Title = "title.oauth2_success"
I18nOAuth2ErrorTitle = "title.oauth2_error"
I18nErrorSetupInstallCode = "setup.install_code_mismatch"
I18nInvalidAuth = "general.invalid_auth_request"
I18nError429Message = "general.error429"
@@ -80,6 +84,8 @@ const (
I18nErrorChangePwdCurrentNoMatch = "change_pwd.current_no_match"
I18nErrorChangePwdRequired = "change_pwd.required"
I18nErrorUsernameRequired = "general.username_required"
I18nErrorPasswordRequired = "general.password_required"
I18nErrorPermissionsRequired = "general.permissions_required"
I18nErrorGetUser = "general.err_user"
I18nErrorPwdResetForbidded = "login.reset_pwd_forbidden"
I18nErrorPwdResetNoEmail = "login.reset_pwd_no_email"
@@ -191,6 +197,17 @@ const (
I18nTemplateFolderTitle = "title.template_folder"
I18nErrorDuplicatedUsername = "general.duplicated_username"
I18nErrorDuplicatedName = "general.duplicated_name"
I18nErrorRoleAdminPerms = "admin.role_permissions"
I18nBackupOK = "general.backup_ok"
I18nErrorFolderTemplate = "virtual_folders.template_no_folder"
I18nErrorUserTemplate = "user.template_no_user"
I18nConfigsOK = "general.configs_saved"
I18nOAuth2ErrorVerifyState = "oauth2.auth_verify_error"
I18nOAuth2ErrorValidateState = "oauth2.auth_validation_error"
I18nOAuth2InvalidState = "oauth2.auth_invalid"
I18nOAuth2ErrTokenExchange = "oauth2.token_exchange_err"
I18nOAuth2ErrNoRefreshToken = "oauth2.no_refresh_token"
I18nOAuth2OK = "oauth2.success"
)
// NewI18nError returns a I18nError wrappring the provided error