From cf4613d043ed3593eacb30315c040d347aa2a6e8 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:12:07 +0000 Subject: [PATCH] Password fix and others (#875) * init * user and pass to just pass lang update --- .../software/SPDF/SPdfApplication.java | 5 +- .../SPDF/controller/api/UserController.java | 81 ++++++++----------- src/main/resources/messages_ar_AR.properties | 4 +- src/main/resources/messages_bg_BG.properties | 2 +- src/main/resources/messages_ca_CA.properties | 4 +- src/main/resources/messages_de_DE.properties | 2 +- src/main/resources/messages_el_GR.properties | 2 +- src/main/resources/messages_en_GB.properties | 4 +- src/main/resources/messages_en_US.properties | 4 +- src/main/resources/messages_es_ES.properties | 2 +- src/main/resources/messages_eu_ES.properties | 4 +- src/main/resources/messages_fr_FR.properties | 2 +- src/main/resources/messages_hi_IN.properties | 2 +- src/main/resources/messages_hu_HU.properties | 2 +- src/main/resources/messages_id_ID.properties | 2 +- src/main/resources/messages_it_IT.properties | 2 +- src/main/resources/messages_ja_JP.properties | 2 +- src/main/resources/messages_ko_KR.properties | 2 +- src/main/resources/messages_nl_NL.properties | 2 +- src/main/resources/messages_pl_PL.properties | 4 +- src/main/resources/messages_pt_BR.properties | 4 +- src/main/resources/messages_pt_PT.properties | 4 +- src/main/resources/messages_ro_RO.properties | 4 +- src/main/resources/messages_ru_RU.properties | 4 +- .../resources/messages_sr_LATN_RS.properties | 2 +- src/main/resources/messages_sv_SE.properties | 4 +- src/main/resources/messages_tr_TR.properties | 2 +- src/main/resources/messages_zh_CN.properties | 2 +- src/main/resources/messages_zh_TW.properties | 2 +- .../resources/templates/change-creds.html | 14 ++-- 30 files changed, 80 insertions(+), 96 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/SPdfApplication.java b/src/main/java/stirling/software/SPDF/SPdfApplication.java index a119f363..db1eeb82 100644 --- a/src/main/java/stirling/software/SPDF/SPdfApplication.java +++ b/src/main/java/stirling/software/SPDF/SPdfApplication.java @@ -19,6 +19,7 @@ import io.github.pixee.security.SystemCommand; import jakarta.annotation.PostConstruct; import stirling.software.SPDF.config.ConfigInitializer; +import stirling.software.SPDF.model.ApplicationProperties; @SpringBootApplication @EnableScheduling @@ -28,6 +29,8 @@ public class SPdfApplication { @Autowired private Environment env; + @Autowired ApplicationProperties applicationProperties; + private static String serverPortStatic; @Value("${server.port:8080}") @@ -55,6 +58,7 @@ public class SPdfApplication { logger.error("Error opening browser: {}", e.getMessage()); } } + logger.info("Running configs {}", applicationProperties.toString()); } public static void main(String[] args) throws IOException, InterruptedException { @@ -88,7 +92,6 @@ public class SPdfApplication { private static void printStartupLogs() { logger.info("Stirling-PDF Started."); - String url = "http://localhost:" + getStaticPort(); logger.info("Navigate to {}", url); } diff --git a/src/main/java/stirling/software/SPDF/controller/api/UserController.java b/src/main/java/stirling/software/SPDF/controller/api/UserController.java index 79064d5c..9554cc80 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/UserController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/UserController.java @@ -31,7 +31,6 @@ import jakarta.servlet.http.HttpServletResponse; import stirling.software.SPDF.config.security.UserService; import stirling.software.SPDF.model.Role; import stirling.software.SPDF.model.User; -import stirling.software.SPDF.model.api.user.UpdateUserDetails; import stirling.software.SPDF.model.api.user.UsernameAndPass; @Controller @@ -53,53 +52,6 @@ public class UserController { return "redirect:/login?registered=true"; } - @PreAuthorize("!hasAuthority('ROLE_DEMO_USER')") - @PostMapping("/change-username-and-password") - public RedirectView changeUsernameAndPassword( - Principal principal, - @ModelAttribute UpdateUserDetails requestModel, - HttpServletRequest request, - HttpServletResponse response, - RedirectAttributes redirectAttributes) { - - String currentPassword = requestModel.getPassword(); - String newPassword = requestModel.getNewPassword(); - String newUsername = requestModel.getNewUsername(); - - if (principal == null) { - return new RedirectView("/change-creds?messageType=notAuthenticated"); - } - - Optional userOpt = userService.findByUsername(principal.getName()); - - if (userOpt == null || userOpt.isEmpty()) { - return new RedirectView("/change-creds?messageType=userNotFound"); - } - - User user = userOpt.get(); - - if (!userService.isPasswordCorrect(user, currentPassword)) { - return new RedirectView("/change-creds?messageType=incorrectPassword"); - } - - if (!user.getUsername().equals(newUsername) && userService.usernameExists(newUsername)) { - return new RedirectView("/change-creds?messageType=usernameExists"); - } - - userService.changePassword(user, newPassword); - if (newUsername != null - && newUsername.length() > 0 - && !user.getUsername().equals(newUsername)) { - userService.changeUsername(user, newUsername); - } - userService.changeFirstUse(user, false); - - // Logout using Spring's utility - new SecurityContextLogoutHandler().logout(request, response, null); - - return new RedirectView("/login?messageType=credsUpdated"); - } - @PreAuthorize("!hasAuthority('ROLE_DEMO_USER')") @PostMapping("/change-username") public RedirectView changeUsername( @@ -139,6 +91,39 @@ public class UserController { return new RedirectView("/login?messageType=credsUpdated"); } + @PreAuthorize("!hasAuthority('ROLE_DEMO_USER')") + @PostMapping("/change-password-on-login") + public RedirectView changePasswordOnLogin( + Principal principal, + @RequestParam String currentPassword, + @RequestParam String newPassword, + HttpServletRequest request, + HttpServletResponse response, + RedirectAttributes redirectAttributes) { + if (principal == null) { + return new RedirectView("/change-creds?messageType=notAuthenticated"); + } + + Optional userOpt = userService.findByUsername(principal.getName()); + + if (userOpt == null || userOpt.isEmpty()) { + return new RedirectView("/change-creds?messageType=userNotFound"); + } + + User user = userOpt.get(); + + if (!userService.isPasswordCorrect(user, currentPassword)) { + return new RedirectView("/change-creds?messageType=incorrectPassword"); + } + + userService.changePassword(user, newPassword); + userService.changeFirstUse(user, false); + // Logout using Spring's utility + new SecurityContextLogoutHandler().logout(request, response, null); + + return new RedirectView("/login?messageType=credsUpdated"); + } + @PreAuthorize("!hasAuthority('ROLE_DEMO_USER')") @PostMapping("/change-password") public RedirectView changePassword( diff --git a/src/main/resources/messages_ar_AR.properties b/src/main/resources/messages_ar_AR.properties index 35d692e2..a5aa383b 100644 --- a/src/main/resources/messages_ar_AR.properties +++ b/src/main/resources/messages_ar_AR.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_bg_BG.properties b/src/main/resources/messages_bg_BG.properties index 7d422be2..83bea683 100644 --- a/src/main/resources/messages_bg_BG.properties +++ b/src/main/resources/messages_bg_BG.properties @@ -110,7 +110,7 @@ settings.accountSettings=Настройки на акаунта changeCreds.title=Промяна на идентификационните данни changeCreds.header=Актуализирайте данните за акаунта си -changeCreds.changeUserAndPassword=Използвате идентификационни данни за вход по подразбиране. Моля, въведете нова парола (и потребителско име, ако искате) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Ново потребителско име changeCreds.oldPassword=Текуща парола changeCreds.newPassword=Нова парола diff --git a/src/main/resources/messages_ca_CA.properties b/src/main/resources/messages_ca_CA.properties index 5f5542a7..6c88d9e3 100644 --- a/src/main/resources/messages_ca_CA.properties +++ b/src/main/resources/messages_ca_CA.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Usuari només WEB adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Desar Usuari ############# diff --git a/src/main/resources/messages_de_DE.properties b/src/main/resources/messages_de_DE.properties index 3501880e..d53b79ca 100644 --- a/src/main/resources/messages_de_DE.properties +++ b/src/main/resources/messages_de_DE.properties @@ -110,7 +110,7 @@ settings.accountSettings=Kontoeinstellungen changeCreds.title=Anmeldeinformationen ändern changeCreds.header=Aktualisieren Sie Ihre Kontodaten -changeCreds.changeUserAndPassword=Sie verwenden Standard-Anmeldeinformationen. Bitte geben Sie ein neues Passwort (und ggf. einen Benutzernamen) ein. +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Neuer Benutzername changeCreds.oldPassword=Aktuelles Passwort changeCreds.newPassword=Neues Passwort diff --git a/src/main/resources/messages_el_GR.properties b/src/main/resources/messages_el_GR.properties index 3ec33335..f055c71c 100644 --- a/src/main/resources/messages_el_GR.properties +++ b/src/main/resources/messages_el_GR.properties @@ -110,7 +110,7 @@ settings.accountSettings=\u03A1\u03C5\u03B8\u03BC\u03AF\u03C3\u03B5\u03B9\u03C2 changeCreds.title=\u0391\u03BB\u03BB\u03B1\u03B3\u03AE \u0394\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03B7\u03C1\u03AF\u03C9\u03BD changeCreds.header=\u0395\u03BD\u03B7\u03BC\u03AD\u03C1\u03C9\u03C3\u03B7 \u03C4\u03C9\u03BD \u03BB\u03B5\u03C0\u03C4\u03BF\u03BC\u03B5\u03C1\u03B5\u03B9\u03CE\u03BD \u03C4\u03BF\u03C5 \u039B\u03BF\u03B3\u03B1\u03C1\u03B9\u03B1\u03C3\u03BC\u03BF\u03CD \u03C3\u03B1\u03C2 -changeCreds.changeUserAndPassword=\u03A7\u03C1\u03B7\u03C3\u03B9\u03BC\u03BF\u03C0\u03BF\u03B9\u03B5\u03AF\u03C4\u03B5 \u03C4\u03B1 \u03C0\u03C1\u03BF\u03B5\u03C0\u03B9\u03BB\u03B5\u03B3\u03BC\u03AD\u03BD\u03B1 \u03B4\u03B9\u03B1\u03C0\u03B9\u03C3\u03C4\u03B5\u03C5\u03C4\u03AE\u03C1\u03B9\u03B1 \u03C3\u03CD\u03BD\u03B4\u03B5\u03C3\u03B7\u03C2. \u03A0\u03B1\u03C1\u03B1\u03BA\u03B1\u03BB\u03CE \u03B5\u03B9\u03C3\u03AC\u03B3\u03B5\u03C4\u03B5 \u03BD\u03AD\u03BF \u03BA\u03C9\u03B4\u03B9\u03BA\u03CC \u03C0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 (\u03BA\u03B1\u03B9 \u03CC\u03BD\u03BF\u03BC\u03B1 \u03C7\u03C1\u03AE\u03C3\u03C4\u03B7 \u03B1\u03BD \u03C4\u03BF \u03B5\u03C0\u03B9\u03B8\u03C5\u03BC\u03B5\u03AF\u03C4\u03B5) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=\u039D\u03AD\u03BF \u038C\u03BD\u03BF\u03BC\u03B1 \u03A7\u03C1\u03AE\u03C3\u03C4\u03B7 changeCreds.oldPassword=\u03A4\u03C1\u03AD\u03C7\u03C9\u03BD \u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03A0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 changeCreds.newPassword=\u039D\u03AD\u03BF\u03C2 \u039A\u03C9\u03B4\u03B9\u03BA\u03CC\u03C2 \u03A0\u03C1\u03CC\u03C3\u03B2\u03B1\u03C3\u03B7\u03C2 diff --git a/src/main/resources/messages_en_GB.properties b/src/main/resources/messages_en_GB.properties index 3d41604c..6ebd2ea2 100644 --- a/src/main/resources/messages_en_GB.properties +++ b/src/main/resources/messages_en_GB.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange = Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_en_US.properties b/src/main/resources/messages_en_US.properties index 8556d354..914240f8 100644 --- a/src/main/resources/messages_en_US.properties +++ b/src/main/resources/messages_en_US.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_es_ES.properties b/src/main/resources/messages_es_ES.properties index 97653537..e35a2b6a 100644 --- a/src/main/resources/messages_es_ES.properties +++ b/src/main/resources/messages_es_ES.properties @@ -110,7 +110,7 @@ settings.accountSettings=Configuración de la cuenta changeCreds.title=Cambiar Credenciales changeCreds.header=Actualice los detalles de su cuenta -changeCreds.changeUserAndPassword=Está usando las credenciales por defecto. Por favor, introduzca una nueva contraseña (y usuario si lo desea) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Nuevo usuario changeCreds.oldPassword=Contraseña actual changeCreds.newPassword=Nueva contraseña diff --git a/src/main/resources/messages_eu_ES.properties b/src/main/resources/messages_eu_ES.properties index be2e082c..837c40c8 100644 --- a/src/main/resources/messages_eu_ES.properties +++ b/src/main/resources/messages_eu_ES.properties @@ -110,7 +110,7 @@ settings.accountSettings=Kontuaren ezarpenak changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web-erabiltzailea bakarrik adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Gorde Erabiltzailea ############# diff --git a/src/main/resources/messages_fr_FR.properties b/src/main/resources/messages_fr_FR.properties index 66cb7a3d..a8b8a126 100644 --- a/src/main/resources/messages_fr_FR.properties +++ b/src/main/resources/messages_fr_FR.properties @@ -110,7 +110,7 @@ settings.accountSettings=Paramètres du compte changeCreds.title=Modifiez vos identifiants changeCreds.header=Mettez à jour vos identifiants de connexion -changeCreds.changeUserAndPassword=Vous utilisez les identifiants de connexion par défaut. Veuillez entrer un nouveau mot de passe (et nom d\u2019utilisateur si vous le souhaitez) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Nouveau nom d\u2019utilisateur changeCreds.oldPassword=Mot de passe actuel changeCreds.newPassword=Nouveau mot de passe diff --git a/src/main/resources/messages_hi_IN.properties b/src/main/resources/messages_hi_IN.properties index a05eeba0..6aa4f437 100644 --- a/src/main/resources/messages_hi_IN.properties +++ b/src/main/resources/messages_hi_IN.properties @@ -110,7 +110,7 @@ settings.accountSettings=खाता सेटिंग्स changeCreds.title=क्रेडेंशियल बदलें changeCreds.header=अपना खाता विवरण अपडेट करें -changeCreds.changeUserAndPassword=आप डिफ़ॉल्ट लॉगिन क्रेडेंशियल का उपयोग कर रहे हैं। कृपया एक नया पासवर्ड दर्ज करें (और यदि चाहें तो उपयोगकर्ता नाम) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=नया उपयोगकर्ता नाम changeCreds.oldPassword=वर्तमान पासवर्ड changeCreds.newPassword=नया पासवर्ड diff --git a/src/main/resources/messages_hu_HU.properties b/src/main/resources/messages_hu_HU.properties index 8b424c79..ad8d9151 100644 --- a/src/main/resources/messages_hu_HU.properties +++ b/src/main/resources/messages_hu_HU.properties @@ -110,7 +110,7 @@ settings.accountSettings=Fiókbeállítások changeCreds.title=Hitelesítés megváltoztatása changeCreds.header=Frissítse fiókadatait -changeCreds.changeUserAndPassword=Alapértelmezett bejelentkezési adatokat használ. Adjon meg egy új jelszót (és felhasználónevet, ha szeretné) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Új felhasználónév changeCreds.oldPassword=Jelenlegi jelszó changeCreds.newPassword=Új jelszó diff --git a/src/main/resources/messages_id_ID.properties b/src/main/resources/messages_id_ID.properties index 961021d6..db68d2f0 100644 --- a/src/main/resources/messages_id_ID.properties +++ b/src/main/resources/messages_id_ID.properties @@ -110,7 +110,7 @@ settings.accountSettings=Pengaturan Akun changeCreds.title=Ubah Kredensial changeCreds.header=Perbarui Detail Akun Anda -changeCreds.changeUserAndPassword=Anda menggunakan kredensial masuk default. Masukkan kata sandi baru (dan nama pengguna jika diinginkan) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Nama Pengguna Baru changeCreds.oldPassword=Kata Sandi Saat Ini changeCreds.newPassword=Kata Sandi Baru diff --git a/src/main/resources/messages_it_IT.properties b/src/main/resources/messages_it_IT.properties index e28c589e..49d325a9 100644 --- a/src/main/resources/messages_it_IT.properties +++ b/src/main/resources/messages_it_IT.properties @@ -110,7 +110,7 @@ settings.accountSettings=Impostazioni Account changeCreds.title=Cambia credenziali changeCreds.header=Aggiorna i dettagli del tuo account -changeCreds.changeUserAndPassword=Stai utilizzando le credenziali di accesso predefinite. Inserisci una nuova password (e un nome utente se lo desideri) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Nuovo nome utente changeCreds.oldPassword=Password attuale changeCreds.newPassword=Nuova Password diff --git a/src/main/resources/messages_ja_JP.properties b/src/main/resources/messages_ja_JP.properties index 658daec0..e85a6d99 100644 --- a/src/main/resources/messages_ja_JP.properties +++ b/src/main/resources/messages_ja_JP.properties @@ -110,7 +110,7 @@ settings.accountSettings=アカウント設定 changeCreds.title=資格情報の変更 changeCreds.header=アカウントの詳細を更新する -changeCreds.changeUserAndPassword=デフォルトのログイン認証情報を使用しています。新しいパスワード (必要に応じてユーザー名も) を入力してください +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=新しいユーザー名 changeCreds.oldPassword=現在のパスワード changeCreds.newPassword=新しいパスワード diff --git a/src/main/resources/messages_ko_KR.properties b/src/main/resources/messages_ko_KR.properties index 5c14c275..a5db2e8c 100644 --- a/src/main/resources/messages_ko_KR.properties +++ b/src/main/resources/messages_ko_KR.properties @@ -110,7 +110,7 @@ settings.accountSettings=계정 설정 changeCreds.title=계정 정보 변경 changeCreds.header=계정 정보 업데이트 -changeCreds.changeUserAndPassword=기본 제공된 로그인 정보를 사용하고 있습니다. 새 비밀번호를 입력합니다. (필요하다면 사용자명을 변경할 수 있습니다.) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=새 사용자명 changeCreds.oldPassword=현재 비밀번호 changeCreds.newPassword=새 비밀번호 diff --git a/src/main/resources/messages_nl_NL.properties b/src/main/resources/messages_nl_NL.properties index 21476a81..4bee115c 100644 --- a/src/main/resources/messages_nl_NL.properties +++ b/src/main/resources/messages_nl_NL.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account instellingen changeCreds.title=Inloggegevens wijzigen changeCreds.header=Werk je accountgegevens bij -changeCreds.changeUserAndPassword=Je gebruikt de standaard inloggegevens. Voer een nieuw wachtwoord in (en eventueel een gebruikersnaam) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Nieuwe gebruikersnaam changeCreds.oldPassword=Huidige wachtwoord changeCreds.newPassword=Nieuw wachtwoord diff --git a/src/main/resources/messages_pl_PL.properties b/src/main/resources/messages_pl_PL.properties index 37bf64e6..b9955a58 100644 --- a/src/main/resources/messages_pl_PL.properties +++ b/src/main/resources/messages_pl_PL.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_pt_BR.properties b/src/main/resources/messages_pt_BR.properties index 86affa82..1d0a8045 100644 --- a/src/main/resources/messages_pt_BR.properties +++ b/src/main/resources/messages_pt_BR.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_pt_PT.properties b/src/main/resources/messages_pt_PT.properties index 97366f3d..943a6cd9 100644 --- a/src/main/resources/messages_pt_PT.properties +++ b/src/main/resources/messages_pt_PT.properties @@ -110,7 +110,7 @@ settings.accountSettings=Configuração de Conta changeCreds.title=Alterar senha changeCreds.header=Alterar dados da sua conta -changeCreds.changeUserAndPassword=Está usando a senha padrão. Por favor, digite uma nova senha (e nome de utilizador, se desejar) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Novo Utilizador changeCreds.oldPassword=Senha Atual changeCreds.newPassword=Nova Senha @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_ro_RO.properties b/src/main/resources/messages_ro_RO.properties index 3ff43818..ea4b20be 100644 --- a/src/main/resources/messages_ro_RO.properties +++ b/src/main/resources/messages_ro_RO.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_ru_RU.properties b/src/main/resources/messages_ru_RU.properties index 358feb20..a206df03 100644 --- a/src/main/resources/messages_ru_RU.properties +++ b/src/main/resources/messages_ru_RU.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_sr_LATN_RS.properties b/src/main/resources/messages_sr_LATN_RS.properties index 09740797..07d795c9 100644 --- a/src/main/resources/messages_sr_LATN_RS.properties +++ b/src/main/resources/messages_sr_LATN_RS.properties @@ -110,7 +110,7 @@ settings.accountSettings=Podešavanja naloga changeCreds.title=Promeni pristupne podatke changeCreds.header=Ažurirajte detalje svog naloga -changeCreds.changeUserAndPassword=Koristite podrazumevane prijavne podatke. Unesite novu lozinku (i korisničko ime ako želite) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Novo korisničko ime changeCreds.oldPassword=Trenutna lozinka changeCreds.newPassword=Nova lozinka diff --git a/src/main/resources/messages_sv_SE.properties b/src/main/resources/messages_sv_SE.properties index 291f657a..dfabf86a 100644 --- a/src/main/resources/messages_sv_SE.properties +++ b/src/main/resources/messages_sv_SE.properties @@ -110,7 +110,7 @@ settings.accountSettings=Account Settings changeCreds.title=Change Credentials changeCreds.header=Update Your Account Details -changeCreds.changeUserAndPassword=You are using default login credentials. Please enter a new password (and username if wanted) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=New Username changeCreds.oldPassword=Current Password changeCreds.newPassword=New Password @@ -153,7 +153,7 @@ adminUserSettings.extraApiUser=Additional Limited API User adminUserSettings.webOnlyUser=Web Only User adminUserSettings.demoUser=Demo User (No custom settings) adminUserSettings.internalApiUser=Internal API User -adminUserSettings.forceChange=Force user to change username/password on login +adminUserSettings.forceChange=Force user to change password on login adminUserSettings.submit=Save User ############# diff --git a/src/main/resources/messages_tr_TR.properties b/src/main/resources/messages_tr_TR.properties index 7b1fdefb..ba47717a 100644 --- a/src/main/resources/messages_tr_TR.properties +++ b/src/main/resources/messages_tr_TR.properties @@ -110,7 +110,7 @@ settings.accountSettings=Hesap Ayarları changeCreds.title=Giriş Bilgilerini Değiştir changeCreds.header=Hesap Detaylarınızı Güncelleyin -changeCreds.changeUserAndPassword=Varsayılan giriş bilgilerini kullanıyorsunuz. Lütfen yeni bir şifre (ve istenirse kullanıcı adı) girin +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=Yeni Kullanıcı Adı changeCreds.oldPassword=Mevcut Şifre changeCreds.newPassword=Yeni Şifre diff --git a/src/main/resources/messages_zh_CN.properties b/src/main/resources/messages_zh_CN.properties index 80f0098a..7e4d8dd8 100644 --- a/src/main/resources/messages_zh_CN.properties +++ b/src/main/resources/messages_zh_CN.properties @@ -110,7 +110,7 @@ settings.accountSettings=帐号设定 changeCreds.title=更改凭证 changeCreds.header=更新您的账户详情 -changeCreds.changeUserAndPassword=您正在使用默认登录凭据。请输入新密码(如果需要,还可以输入新用户名) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=新用户名 changeCreds.oldPassword=当前密码 changeCreds.newPassword=新密码 diff --git a/src/main/resources/messages_zh_TW.properties b/src/main/resources/messages_zh_TW.properties index 75001bf1..545005ad 100644 --- a/src/main/resources/messages_zh_TW.properties +++ b/src/main/resources/messages_zh_TW.properties @@ -110,7 +110,7 @@ settings.accountSettings=帳戶設定 changeCreds.title=變更憑證 changeCreds.header=更新您的帳戶詳細資訊 -changeCreds.changeUserAndPassword=您正在使用預設的登入憑證。請輸入新的密碼(如果需要,也可以輸入使用者名稱) +changeCreds.changePassword=You are using default login credentials. Please enter a new password changeCreds.newUsername=新使用者名稱 changeCreds.oldPassword=目前密碼 changeCreds.newPassword=新密碼 diff --git a/src/main/resources/templates/change-creds.html b/src/main/resources/templates/change-creds.html index b22a9bd2..aab874e2 100644 --- a/src/main/resources/templates/change-creds.html +++ b/src/main/resources/templates/change-creds.html @@ -36,15 +36,11 @@

-

Change Username and password

-
+

Change password

+
- - -
-
- - + +
@@ -60,7 +56,7 @@