fix: Update email action should hit API
This commit is contained in:
@ -574,6 +574,7 @@ module.exports = function(User) {
|
||||
) {
|
||||
const ownEmail = newEmail === this.email;
|
||||
if (!isEmail('' + newEmail)) {
|
||||
debug('invalid email:', newEmail );
|
||||
return Observable.throw(createEmailError());
|
||||
}
|
||||
// email is already associated and verified with this account
|
||||
|
Reference in New Issue
Block a user