Don't require password when editing user

This commit is contained in:
kiswa 2016-09-21 23:28:52 +00:00
parent 2ee00f1312
commit 86647fe51e

View File

@ -152,7 +152,7 @@ export class UserAdmin {
return false;
}
if (user.password === '') {
if (this.modalProps.title === 'Add' && user.password === '') {
this.notes.add(new Notification('error', 'Password is required.'));
return false;
}