Don't require password when editing user
This commit is contained in:
parent
2ee00f1312
commit
86647fe51e
@ -152,7 +152,7 @@ export class UserAdmin {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.password === '') {
|
if (this.modalProps.title === 'Add' && user.password === '') {
|
||||||
this.notes.add(new Notification('error', 'Password is required.'));
|
this.notes.add(new Notification('error', 'Password is required.'));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user