auth dan user profile

This commit is contained in:
2026-07-17 11:19:09 +07:00
parent 0c289ec244
commit e316d064ef
11 changed files with 188 additions and 28 deletions
+8 -8
View File
@@ -14,21 +14,21 @@ document.addEventListener('DOMContentLoaded', function () {
username: {
validators: {
notEmpty: {
message: 'Please enter username'
message: 'Silakan masukkan username'
},
stringLength: {
min: 6,
message: 'Username must be more than 6 characters'
message: 'Username harus terdiri dari minimal 6 karakter'
}
}
},
email: {
validators: {
notEmpty: {
message: 'Please enter your email'
message: 'Silakan masukkan email Anda'
},
emailAddress: {
message: 'Please enter a valid email address'
message: 'Silakan masukkan email yang valid'
}
}
},
@@ -57,22 +57,22 @@ document.addEventListener('DOMContentLoaded', function () {
'confirm-password': {
validators: {
notEmpty: {
message: 'Please confirm password'
message: 'Silakan konfirmasi password Anda'
},
identical: {
compare: () => formAuthentication.querySelector('[name="password"]').value,
message: 'The password and its confirmation do not match'
message: 'Password tidak cocok dengan konfirmasi password'
},
stringLength: {
min: 6,
message: 'Password must be more than 6 characters'
message: 'Password harus terdiri dari minimal 6 karakter'
}
}
},
terms: {
validators: {
notEmpty: {
message: 'Please agree to terms & conditions'
message: 'Silakan terima syarat dan ketentuan kami'
}
}
}