diff --git a/src/components/RegisterPage.vue b/src/components/RegisterPage.vue
index 7a3d0f43..d900de61 100644
--- a/src/components/RegisterPage.vue
+++ b/src/components/RegisterPage.vue
@@ -25,6 +25,17 @@
@keyup.enter="register"
/>
+
+
+
@@ -68,6 +79,10 @@ export default {
methods: {
register() {
if (!this.username || !this.password) return;
+ if (this.password != this.passwordConfirm) {
+ alert(this.$t("login.passwords_incorrect"));
+ return;
+ }
if (isEmail(this.username) && !this.forceUnsecureRegister) {
this.showUnsecureRegisterDialog = true;
return;
diff --git a/src/locales/en.json b/src/locales/en.json
index 2a398c54..97a4d30b 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -162,7 +162,9 @@
},
"login": {
"username": "Username",
- "password": "Password"
+ "password": "Password",
+ "password_confirm": "Confirm password",
+ "passwords_incorrect": "Passwords don't match!"
},
"video": {
"videos": "Videos",