diff --git a/l10n/de.js b/l10n/de.js index 5a5a6a83bc48f762b3dccbb64018836a806f0f6d..17969f2b6091afc51a024062084ad99ed4d40f9b 100644 --- a/l10n/de.js +++ b/l10n/de.js @@ -73,7 +73,7 @@ OC.L10N.register( "Success!": "Erfolgreich!", "Your __username__@__domain__ account was successfully created.": "Ihr __username__@__domain__-Konto wurde erfolgreich erstellt.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Wenn Sie Ihre murena.io-E-Mail in einer Mail-Anwendung wie Thunderbird, Outlook oder einer anderen nutzen möchten, besuchen Sie bitte diese Seite.", - "Incorrect password length: Required length is 8 to 32": "Falsche Passwortlänge: Erforderliche Länge ist 8 bis 32", + "Incorrect password length: Required length is 12 to 128": "Falsche Passwortlänge: Erforderliche Länge ist 12 bis 128", "Use an alternative email": "Verwenden Sie eine alternative E-Mail", "Important:": "Das ist wichtig:", "For security reasons, a recovery email is required.": "Aus Sicherheitsgründen ist eine Wiederherstellungs-E-Mail erforderlich.", @@ -82,6 +82,9 @@ OC.L10N.register( "A server-side error occurred while processing your request! Please try again later.": "Ein serverseitiger Fehler ist bei der Bearbeitung Ihrer Anfrage aufgetreten! Bitte versuchen Sie es später noch einmal.", "An error occurred while creating your account!": "Beim Anlegen Ihres Kontos ist ein Fehler aufgetreten!", "Username is too large.": "Der Benutzername ist zu groß.", + "Username is too small.": "Der Benutzername ist zu kurz.", + "Password is too large.": "Das Passwort ist zu groß.", + "Password is too small.": "Das Passwort ist zu kurz.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten.", diff --git a/l10n/de.json b/l10n/de.json index 06d7bc6d6a7c1f8fc378a78c37f133557acfa7fc..ac1e09a5b8dc3ea2334f49a2e78b4f9eb5de6752 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -71,7 +71,7 @@ "Success!": "Erfolgreich!", "Your __username__@__domain__ account was successfully created.": "Ihr __username__@__domain__-Konto wurde erfolgreich erstellt.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Wenn Sie Ihre murena.io-E-Mail in einer Mail-Anwendung wie Thunderbird, Outlook oder einer anderen nutzen möchten, besuchen Sie bitte diese Seite.", - "Incorrect password length: Required length is 8 to 32": "Falsche Passwortlänge: Erforderliche Länge ist 8 bis 32", + "Incorrect password length: Required length is 12 to 128": "Falsche Passwortlänge: Erforderliche Länge ist 12 bis 128", "Use an alternative email": "Verwenden Sie eine alternative E-Mail", "Important:": "Das ist wichtig:", "For security reasons, a recovery email is required.": "Aus Sicherheitsgründen ist eine Wiederherstellungs-E-Mail erforderlich.", @@ -79,7 +79,10 @@ "Captcha is not verified!": "Captcha wird nicht überprüft!", "A server-side error occurred while processing your request! Please try again later.": "Ein serverseitiger Fehler ist bei der Bearbeitung Ihrer Anfrage aufgetreten! Bitte versuchen Sie es später noch einmal.", "An error occurred while creating your account!": "Beim Anlegen Ihres Kontos ist ein Fehler aufgetreten!", - "Username is too large.": "Der Benutzername ist zu groß.", + "Username is too long.": "Der Benutzername ist zu lang." + "Username is too short.": "Der Benutzername ist zu kurz.", + "Password is too long.": "Das Passwort ist zu lang.", + "Password is too short.": "Das Passwort ist zu kurz.", "Display name is too large.": "Der Anzeigename ist zu groß.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten.", diff --git a/l10n/de_DE.js b/l10n/de_DE.js index a45189345291262b3936e8d52e8b7076010a4c31..81ba5c73930e60e0b7a902ff781f918533309d50 100644 --- a/l10n/de_DE.js +++ b/l10n/de_DE.js @@ -73,7 +73,7 @@ OC.L10N.register( "Success!": "Erfolgreich!", "Your __username__@__domain__ account was successfully created.": "Ihr __username__@__domain__-Konto wurde erfolgreich erstellt.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Wenn Sie Ihre murena.io-E-Mail in einer Mail-Anwendung wie Thunderbird, Outlook oder einer anderen nutzen möchten, besuchen Sie bitte diese Seite.", - "Incorrect password length: Required length is 8 to 32": "Falsche Passwortlänge: Erforderliche Länge ist 8 bis 32", + "Incorrect password length: Required length is 12 to 128": "Falsche Passwortlänge: Erforderliche Länge ist 12 bis 128", "Use an alternative email": "Verwenden Sie eine alternative E-Mail", "Important:": "Das ist wichtig:", "For security reasons, a recovery email is required.": "Aus Sicherheitsgründen ist eine Wiederherstellungs-E-Mail erforderlich.", @@ -83,6 +83,9 @@ OC.L10N.register( "An error occurred while creating your account!": "Beim Anlegen Ihres Kontos ist ein Fehler aufgetreten!", "Username is too large.": "Der Benutzername ist zu groß.", "Display name is too large.": "Der Anzeigename ist zu groß.", + "Username is too large.": "Der Benutzername ist zu kurz.", + "Password is too large.": "Das Passwort ist zu groß.", + "Password is too small.": "Das Passwort ist zu kurz.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Ihr Browser unterstützt die erforderliche Verschlüsselung nicht. Bitte aktualisieren Sie Ihren Browser, um fortzufahren." diff --git a/l10n/de_DE.json b/l10n/de_DE.json index ae9c75fe7d9a1f5ed6ea646398cd7646725c6f3c..a3d7b341b8f0412f2472abbf9c2bd647071fb421 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -71,7 +71,7 @@ "Success!": "Erfolgreich!", "Your __username__@__domain__ account was successfully created.": "Ihr __username__@__domain__-Konto wurde erfolgreich erstellt.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Wenn Sie Ihre murena.io-E-Mail in einer Mail-Anwendung wie Thunderbird, Outlook oder einer anderen nutzen möchten, besuchen Sie bitte diese Seite.", - "Incorrect password length: Required length is 8 to 32": "Falsche Passwortlänge: Erforderliche Länge ist 8 bis 32", + "Incorrect password length: Required length is 12 to 128": "Falsche Passwortlänge: Erforderliche Länge ist 12 bis 128", "Use an alternative email": "Verwenden Sie eine alternative E-Mail", "Important:": "Das ist wichtig:", "For security reasons, a recovery email is required.": "Aus Sicherheitsgründen ist eine Wiederherstellungs-E-Mail erforderlich.", @@ -79,8 +79,11 @@ "Captcha is not verified!": "Captcha wird nicht überprüft!", "A server-side error occurred while processing your request! Please try again later.": "Ein serverseitiger Fehler ist bei der Bearbeitung Ihrer Anfrage aufgetreten! Bitte versuchen Sie es später noch einmal.", "An error occurred while creating your account!": "Beim Anlegen Ihres Kontos ist ein Fehler aufgetreten!", - "Username is too large.": "Der Benutzername ist zu groß.", - "Display name is too large.": "Der Anzeigename ist zu groß.", + "Username is too long.": "Der Benutzername ist zu lang.", + "Username is too short.": "Der Benutzername ist zu kurz.", + "Password is too long.": "Das Passwort ist zu lang.", + "Password is too short.": "Das Passwort ist zu kurz.", + "Display name is too long.": "Der Anzeigename ist zu lang.", "Password has invalid characters.": "Das Passwort enthält ungültige Zeichen.", "I want to stay informed about Murena for business offers.": "Ich möchte Informationen über Murenas Angebote erhalten.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Ihr Browser unterstützt die erforderliche Verschlüsselung nicht. Bitte aktualisieren Sie Ihren Browser, um fortzufahren." diff --git a/l10n/en.js b/l10n/en.js index 9209b1ff4550b3636fe50b04881ec6f861f28e9a..5337596739c42c89b3d7968fcb7cceacbcb24273 100644 --- a/l10n/en.js +++ b/l10n/en.js @@ -76,7 +76,7 @@ OC.L10N.register( "Success!": "Success!", "Your __username__@__domain__ account was successfully created.": "Your __username__@__domain__ account was successfully created.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.", - "Incorrect password length: Required length is 8 to 32": "Incorrect password length: Required length is 8 to 32", + "Incorrect password length: Required length is 12 to 128": "Incorrect password length: Required length is 12 to 128", "Use an alternative email": "Use an alternative email", "Important:": "Important:", "For security reasons, a recovery email is required.": "For security reasons, a recovery email is required.", @@ -84,8 +84,11 @@ OC.L10N.register( "Captcha is not verified!": "Captcha is not verified!", "A server-side error occurred while processing your request! Please try again later.": "A server-side error occurred while processing your request! Please try again later.", "An error occurred while creating your account!": "An error occurred while creating your account!", - "Username is too large.": "Username is too large.", - "Display name is too large.": "Display name is too large.", + "Username is too long.": "Username is too long.", + "Username is too short.": "Username is too short.", + "Password is too long.": "Password is too long.", + "Password is too short.": "Password is too short.", + "Display name is too long.": "Display name is too long.", "Password has invalid characters.": "Password has invalid characters.", "I want to stay informed about Murena for business offers.": "I want to stay informed about Murena for business offers.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Your browser does not support the required encryption. Please use an up-to-date browser to continue." diff --git a/l10n/en.json b/l10n/en.json index d6e8e1ad6897ce7e07fd538c5355e5c0a3a0f007..580b77b83d462fb42a49f1f5a413bec5e7e030cf 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -73,7 +73,7 @@ "Success!": "Success!", "Your __username__@__domain__ account was successfully created.": "Your __username__@__domain__ account was successfully created.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.", - "Incorrect password length: Required length is 8 to 32": "Incorrect password length: Required length is 8 to 32", + "Incorrect password length: Required length is 12 to 128": "Incorrect password length: Required length is 12 to 128", "Use an alternative email": "Use an alternative email", "Important:": "Important:", "For security reasons, a recovery email is required.": "For security reasons, a recovery email is required.", @@ -81,8 +81,11 @@ "Captcha is not verified!": "Captcha is not verified!", "A server-side error occurred while processing your request! Please try again later.": "A server-side error occurred while processing your request! Please try again later.", "An error occurred while creating your account!": "An error occurred while creating your account!", - "Username is too large.": "Username is too large.", - "Display name is too large.": "Display name is too large.", + "Username is too long.": "Username is too long.", + "Display name is too long.": "Display name is too long.", + "Username is too short.": "Username is too short.", + "Password is too long.": "Password is too long.", + "Password is too short.": "Password is too short.", "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", "I want to stay informed about Murena for business offers.": "I want to stay informed about Murena for business offers.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Your browser does not support the required encryption. Please use an up-to-date browser to continue." diff --git a/l10n/es.js b/l10n/es.js index 332318689ce74e0901c9ac916b679c71d111adc5..8cd2ff382598e5433d76b788ddeb9f97de59a873 100644 --- a/l10n/es.js +++ b/l10n/es.js @@ -75,7 +75,7 @@ OC.L10N.register( "Success!": "¡Éxito!", "Your __username__@__domain__ account was successfully created.": "Su cuenta __username__@__domain__ se ha creado correctamente.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Si desea utilizar su correo electrónico de murena.io en una aplicación de correo como Thunderbird, Outlook u otra, visite esta página.", - "Incorrect password length: Required length is 8 to 32": "Longitud de contraseña incorrecta: La longitud requerida es de 8 a 32", + "Incorrect password length: Required length is 12 to 128": "Longitud de contraseña incorrecta: La longitud requerida es de 12 a 128", "Use an alternative email": "Utilizar un correo electrónico alternativo", "Important:": "Importante:", "For security reasons, a recovery email is required.": "Por razones de seguridad, se requiere un correo electrónico de recuperación.", @@ -84,6 +84,9 @@ OC.L10N.register( "A server-side error occurred while processing your request! Please try again later.": "Hubo un error en el servidor al procesar tu solicitud. Por favor, inténtalo más tarde.", "An error occurred while creating your account!": "¡Hubo un error creando tu cuenta!", "Username is too large.": "El nombre de usuario es demasiado grande.", + "Username is too small.": "El nombre de usuario es demasiado corto.", + "Password is too large.": "La contraseña es demasiado grande.", + "Password is too small.": "La contraseña es demasiado corta.", "Display name is too large.": "El nombre para mostrar es demasiado grande.", "Password has invalid characters.": "La contraseña tiene caracteres no válidos.", "I want to stay informed about Murena for business offers.": "Deseo permanecer informado sobre las ofertas de Murena para empresas.", diff --git a/l10n/es.json b/l10n/es.json index 88c4ba50a1d4c57c25e617a9ef94eb91cba01667..ffd4b4f2c8152fe8c328e6ee07625e18c145de94 100644 --- a/l10n/es.json +++ b/l10n/es.json @@ -74,7 +74,7 @@ "Success!": "¡Éxito!", "Your __username__@__domain__ account was successfully created.": "Su cuenta __username__@__domain__ se ha creado correctamente.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Si desea utilizar su correo electrónico de murena.io en una aplicación de correo como Thunderbird, Outlook u otra, visite esta página.", - "Incorrect password length: Required length is 8 to 32": "Longitud de contraseña incorrecta: La longitud requerida es de 8 a 32", + "Incorrect password length: Required length is 12 to 128": "Longitud de contraseña incorrecta: La longitud requerida es de 12 a 128", "Use an alternative email": "Utilizar un correo electrónico alternativo", "Important:": "Importante:", "For security reasons, a recovery email is required.": "Por razones de seguridad, se requiere un correo electrónico de recuperación.", @@ -82,8 +82,11 @@ "Captcha is not verified!": "¡Captcha no está verificado!", "A server-side error occurred while processing your request! Please try again later.": "Hubo un error en el servidor al procesar tu solicitud. Por favor, inténtalo más tarde.", "An error occurred while creating your account!": "¡Hubo un error creando tu cuenta!", - "Username is too large.": "El nombre de usuario es demasiado grande.", - "Display name is too large.": "El nombre para mostrar es demasiado grande.", + "Username is too long.": "El nombre de usuario es demasiado largo.", + "Username is too short.": "El nombre de usuario es demasiado corto.", + "Password is too long.": "La contraseña es demasiado larga.", + "Password is too short.": "La contraseña es demasiado corta.", + "Display name is too long.": "El nombre para mostrar es demasiado largo.", "Password has invalid characters.": "Password has invalid characters.", "I want to stay informed about Murena for business offers.": "Deseo permanecer informado sobre las ofertas de Murena para empresas.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Tu navegador no admite el cifrado requerido. Utiliza un navegador actualizado para continuar." diff --git a/l10n/fr.js b/l10n/fr.js index 25481a169e2b1eaac3855a57a6c0eb870a52dcd1..1dad4a0abbe7f5fe3faf512bf8883c6a046fa8dd 100644 --- a/l10n/fr.js +++ b/l10n/fr.js @@ -74,7 +74,7 @@ OC.L10N.register( "Success!": "Succès !", "Your __username__@__domain__ account was successfully created.": "Votre compte __username__@__domain__ a été créé avec succès.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Si vous souhaitez utiliser votre email murena.io dans une application de messagerie comme Thunderbird, Outlook ou autre, veuillez visiter cette page.", - "Incorrect password length: Required length is 8 to 32":"ngueur de mot de passe incorrecte : La longueur requise est comprise entre 8 et 32", + "Incorrect password length: Required length is 12 to 128":"ngueur de mot de passe incorrecte : La longueur requise est comprise entre 12 et 128", "Use an alternative email": "Utiliser un autre courriel", "Important:": "Important :", "For security reasons, a recovery email is required.": "Pour des raisons de sécurité, un courriel de récupération est nécessaire.", @@ -83,6 +83,9 @@ OC.L10N.register( "A server-side error occurred while processing your request! Please try again later.": "Erreur du serveur dans la gestion de votre demande ! Merci d'essayer ultérieurement.", "An error occurred while creating your account!": "Une erreur s'est produite lors de la création de votre compte!", "Username is too large.": "Le nom d'utilisateur est trop grand.", + "Username is too small.": "Le nom d'utilisateur est trop court.", + "Password is too large.": "Le mot de passe est trop grand.", + "Password is too small.": "Le mot de passe est trop court.", "Display name is too large.": "Le nom affiché est trop grand.", "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", "I want to stay informed about Murena for business offers.": "Je souhaite rester informé·e des offres Murena pour les entreprises.", diff --git a/l10n/fr.json b/l10n/fr.json index 2c80d3a507ea3b3866bdd583e28d2dc281fc7991..53db31dc5af9d4120b92f550ba483956bc286aec 100644 --- a/l10n/fr.json +++ b/l10n/fr.json @@ -73,7 +73,7 @@ "Success!": "Succès !", "Your __username__@__domain__ account was successfully created.": "Votre compte __username__@__domain__ a été créé avec succès.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Si vous souhaitez utiliser votre email murena.io dans une application de messagerie comme Thunderbird, Outlook ou autre, veuillez visiter cette page.", - "Incorrect password length: Required length is 8 to 32":"ngueur de mot de passe incorrecte : La longueur requise est comprise entre 8 et 32", + "Incorrect password length: Required length is 12 to 128":"ngueur de mot de passe incorrecte : La longueur requise est comprise entre 12 et 128", "Use an alternative email": "Utiliser un autre courriel", "Important:": "Important :", "For security reasons, a recovery email is required.": "Pour des raisons de sécurité, un courriel de récupération est nécessaire.", @@ -81,8 +81,11 @@ "Captcha is not verified!": "Captcha n'est pas vérifié !", "A server-side error occurred while processing your request! Please try again later.": "Erreur du serveur dans la gestion de votre demande ! Merci d'essayer ultérieurement.", "An error occurred while creating your account!": "Une erreur s'est produite lors de la création de votre compte!", - "Username is too large.": "Le nom d'utilisateur est trop grand.", - "Display name is too large.": "Le nom affiché est trop grand.", + "Username is too long.": "Le nom d'utilisateur est trop long.", + "Username is too short.": "Le nom d'utilisateur est trop court.", + "Password is too long.": "Le mot de passe est trop long.", + "Password is too short.": "Le mot de passe est trop court.", + "Display name is too long.": "Le nom affiché est trop long.", "Password has invalid characters.": "Le mot de passe contient des caractères non valides.", "I want to stay informed about Murena for business offers.": "Je souhaite rester informé·e des offres Murena pour les entreprises.", "Your browser does not support the required encryption. Please use an up-to-date browser to continue.": "Votre navigateur ne prend pas en charge le chiffrement requis. Veuillez utiliser un navigateur à jour pour continuer." diff --git a/l10n/it.js b/l10n/it.js index a18bfeab08728ae99034532bb0b7f8d5f5f42457..7174418efb2d886169d09ba5f81713c54480762b 100644 --- a/l10n/it.js +++ b/l10n/it.js @@ -74,7 +74,7 @@ OC.L10N.register( "Success!": "Successo!", "Your __username__@__domain__ account was successfully created.": "L'account __username__@__domain__ è stato creato con successo.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Se si desidera utilizzare l'e-mail di murena.io in un'applicazione di posta elettronica come Thunderbird, Outlook o altre, visitare questa pagina.", - "Incorrect password length: Required length is 8 to 32":"Lunghezza della password errata: La lunghezza richiesta è da 8 a 32", + "Incorrect password length: Required length is 12 to 128":"Lunghezza della password errata: La lunghezza richiesta è da 12 a 128", "Use an alternative email": "Utilizzare un'e-mail alternativa", "Important:": "Importante:", "For security reasons, a recovery email is required.": "Per motivi di sicurezza, è necessaria un'e-mail di recupero.", @@ -83,6 +83,9 @@ OC.L10N.register( "A server-side error occurred while processing your request! Please try again later.": "Si è verificato un errore lato server nel processare la tua richiesta! Ritenta più tardi.", "An error occurred while creating your account!": "Si è verificato un errore nella creazione dell'account!", "Username is too large.": "Il nome utente è troppo grande.", + "Username is too small.": "Il nome utente è troppo breve.", + "Password is too large.": "La password is too grande.", + "Password is too small.": "La password è troppo breve.", "Display name is too large.": "Il nome del display è troppo grande.", "Password has invalid characters.": "La password contiene caratteri non validi.", "I want to stay informed about Murena for business offers.": "Desidero ricevere informazioni sulle offerte commerciali di Murena.", diff --git a/l10n/it.json b/l10n/it.json index 3989a8d8fe458036c8803e0a0e35f25149f13147..270d4010c63460a1a5cc76382a0bc03823361192 100644 --- a/l10n/it.json +++ b/l10n/it.json @@ -69,7 +69,7 @@ "Recovery Email is required.": "L'e-mail di recupero è necessaria.", "You must read and accept the Terms of Service to create your account.": "Per creare il proprio account è necessario leggere e accettare i Termini di servizio.", "If you want to use your murena.io email in a mail app like Thunderbird, Outlook or another, please visit this page.": "Se si desidera utilizzare l'e-mail di murena.io in un'applicazione di posta elettronica come Thunderbird, Outlook o altre, visitare questa pagina.", - "Incorrect password length: Required length is 8 to 32":"Lunghezza della password errata: La lunghezza richiesta è da 8 a 32", + "Incorrect password length: Required length is 12 to 128":"Lunghezza della password errata: La lunghezza richiesta è da 12 a 128", "Use an alternative email": "Utilizzare un'e-mail alternativa", "Important:": "Importante:", "For security reasons, a recovery email is required.": "Per motivi di sicurezza è necessaria un'e-mail di recupero.", @@ -77,8 +77,11 @@ "Captcha is not verified!": "Il Captcha non è verificato!", "A server-side error occurred while processing your request! Please try again later.": "Si è verificato un errore lato server nel processare la tua richiesta! Ritenta più tardi.", "An error occurred while creating your account!": "Si è verificato un errore nella creazione dell'account!", - "Username is too large.": "Il nome utente è troppo grande.", - "Display name is too large.": "Il nome del display è troppo grande.", + "Username is too long.": "Il nome utente è troppo lungo.", + "Username is too short.": "Il nome utente è troppo corto.", + "Password is too long.": "La password è troppo lunga.", + "Password is too short.": "La password è troppo corta.", + "Display name is too long.": "Il nome visualizzato è troppo lungo.", "Password has invalid characters.": "La password contiene caratteri non validi.", "I have read and accept the Terms of Service.": "Ho letto e accetto i Termini di servizio.", "I want to stay informed about Murena for business offers.": "Desidero ricevere informazioni sulle offerte commerciali di Murena.", diff --git a/lib/Controller/AccountController.php b/lib/Controller/AccountController.php index 379d2e0fa56e1fa6e37f76fab5b268d17b3a01a3..6300f7914115ebed1e28f4b82d90e48637ed349c 100644 --- a/lib/Controller/AccountController.php +++ b/lib/Controller/AccountController.php @@ -181,9 +181,9 @@ class AccountController extends Controller { } $inputData = [ - 'username' => ['value' => $username, 'maxLength' => 30], - 'display name' => ['value' => $displayname, 'maxLength' => 30], - 'password' => ['value' => $password, 'maxLength' => 32], + 'username' => ['value' => $username, 'maxLength' => 30, 'minLength' => 3], + 'display name' => ['value' => $displayname, 'maxLength' => 30, 'minLength' => null], + 'password' => ['value' => $password, 'maxLength' => 128, 'minLength' => 12], ]; foreach ($inputData as $inputName => $inputInfo) { @@ -272,13 +272,16 @@ class AccountController extends Controller { * * @return string|null If validation fails, a string describing the error; otherwise, null. */ - private function validateInput(string $inputName, string $value, ?int $maxLength = null) : ?string { + private function validateInput(string $inputName, string $value, ?int $maxLength = null, ?int $minLength = null) : ?string { if ($value === '') { return ucfirst(strtolower($inputName))." is required."; } if ($maxLength !== null && strlen($value) > $maxLength) { return ucfirst(strtolower($inputName))." is too large."; } + if ($minLength !== null && strlen($value) < $minLength) { + return ucfirst(strtolower($inputName))." is too small."; + } return null; // Validation passed } @@ -294,7 +297,7 @@ class AccountController extends Controller { * * @return \OCP\AppFramework\Http\DataResponse */ - public function validateFields(string $username, string $displayname) : DataResponse { + public function validateFields(string $username, string $displayname, string $password) : DataResponse { $this->session->remove(self::SESSION_VERIFIED_DISPLAYNAME); $this->session->remove(self::SESSION_VERIFIED_USERNAME); $response = new DataResponse(); @@ -309,13 +312,19 @@ class AccountController extends Controller { return $response; } + if (empty($password)) { + $response->setData(['message' => 'Password is required.', 'field' => 'password', 'success' => false]); + return $response; + } + $inputData = [ - 'username' => ['value' => $username, 'maxLength' => 30], - 'display name' => ['value' => $displayname, 'maxLength' => 30] + 'username' => ['value' => $username, 'maxLength' => 30, 'minLength' => 3], + 'display name' => ['value' => $displayname, 'maxLength' => 30, 'minLength' => null], + 'password' => ['value' => $password, 'maxLength' => 128, 'minLength' => 12], ]; - + foreach ($inputData as $inputName => $inputInfo) { - $validationError = $this->validateInput($inputName, $inputInfo['value'], $inputInfo['maxLength']); + $validationError = $this->validateInput($inputName, $inputInfo['value'], $inputInfo['maxLength'], $inputInfo['minLength']); if ($validationError !== null) { $response->setData(['message' => $validationError, 'field' => $inputName, 'success' => false]); $response->setStatus(400); diff --git a/src/passwords/PWDv1Challenge.js b/src/passwords/PWDv1Challenge.js index 72cca72d802ef360f2e48f64f33ec6c97f29539b..a437aad18d2e6f4d439f5cf465d91977d606d3d0 100644 --- a/src/passwords/PWDv1Challenge.js +++ b/src/passwords/PWDv1Challenge.js @@ -12,8 +12,8 @@ export default class PWDv1Challenge extends BasePWDv1Challenge { } _validatePasswordLength() { - if (this._password.length < 8) throw new Error('Password is too short') - if (this._password.length > 128) throw new Error('Password is too long') + if (this._password.length < 12) throw new Error('Password is too small.') + if (this._password.length > 128) throw new Error('Password is too large.') } solve() { diff --git a/src/signup/RegistrationForm.vue b/src/signup/RegistrationForm.vue index 51db07a1ff7b94ea8ae7a46055d5ae066ec1bde3..773f550248ec6f82e261fc702ba661057cf218a7 100644 --- a/src/signup/RegistrationForm.vue +++ b/src/signup/RegistrationForm.vue @@ -236,7 +236,7 @@ export default { ], passwordErrors: [], passwordRules: [ - { message: t(this.appName, 'Incorrect password length: Required length is 8 to 32'), regex: /.{8,32}/ }, + { message: t(this.appName, 'Incorrect password length: Required length is 12 to 128'), regex: /^.{12,128}$/ }, { message: t(this.appName, 'Password has invalid characters.'), regex: /^(?!.*\\).*/ }, ], isUsernameAvailable: false, @@ -314,10 +314,14 @@ export default { const data = { username: this.formData.username, displayname: this.formData.displayname, + password: this.formData.password, } const url = generateUrl(`/apps/${this.appName}/accounts/validate_fields`) try { + this.usernameValidationMessage = '' + this.displaynameValidationMessage = '' + this.passwordErrors = [] await Axios.post(url, data) this.isUsernameAvailable = true } catch (error) { @@ -330,6 +334,10 @@ export default { this.validation.isDisplaynameNotValid = true this.displaynameValidationMessage = t(this.appName, error.response.data.message) } + if (error.response.data.field === 'password') { + this.validation.isPasswordNotValid = true + this.passwordErrors.push(t(this.appName, error.response.data.message)) + } } else { this.validation.isUsernameNotValid = true this.usernameValidationMessage = t(this.appName, 'Something went wrong.')