Mark password field as invalid if not long enough
This commit is contained in:
@@ -46,6 +46,9 @@ async function onOwnerSubmit() {
|
||||
if (error.body.message === 'Invalid email') {
|
||||
formError.value.email = error.body.message;
|
||||
email.value = '';
|
||||
} else if (error.body.message === 'Password must be atleast 8 characters') {
|
||||
formError.value.password = error.body.message;
|
||||
password.value = '';
|
||||
} else {
|
||||
formError.value.username = error.body.message;
|
||||
username.value = '';
|
||||
|
||||
Reference in New Issue
Block a user