diff --git a/data/lang/form/en-us.json b/data/lang/form/en-us.json index 1d0ab47..fe94b3f 100644 --- a/data/lang/form/en-us.json +++ b/data/lang/form/en-us.json @@ -9,6 +9,8 @@ "emailAddress": "Email", "username": "Username", "password": "Password", + "reEnterPassword": "Re-enter Password", + "reEnterPasswordInvalid": "Passwords are not the same.", "createAccountButton": "Create Account", "passwordRequirementsHeader": "Password Requirements", "successHeader": "Success!", diff --git a/data/lang/form/fr-fr.json b/data/lang/form/fr-fr.json index a329850..102148e 100644 --- a/data/lang/form/fr-fr.json +++ b/data/lang/form/fr-fr.json @@ -10,6 +10,8 @@ "emailAddress": "Email", "username": "Pseudo", "password": "Mot de passe", + "reEnterPassword": "Confirmez mot de passe", + "reEnterPasswordInvalid": "Les mots de passe ne correspondent pas.", "createAccountButton": "Créer le compte", "passwordRequirementsHeader": "Mot de passe requis", "successHeader": "Succes!", diff --git a/data/templates/form-base.html b/data/templates/form-base.html index 5569535..1c8bbf0 100644 --- a/data/templates/form-base.html +++ b/data/templates/form-base.html @@ -3,6 +3,7 @@ window.bs5 = {{ .settings.bs5 }}; window.usernameEnabled = {{ .settings.username }}; window.validationStrings = JSON.parse({{ .lang.validationStrings }}); + window.invalidPassword = "{{ .lang.reEnterPasswordInvalid }}"; {{ end }} diff --git a/data/templates/form.html b/data/templates/form.html index 1b2ed3b..cd16cc6 100644 --- a/data/templates/form.html +++ b/data/templates/form.html @@ -86,6 +86,10 @@ +
+ + +