Browse Source

fix: cannot update user email from admin (#1197)

pull/1223/head
NGPixel 5 years ago
parent
commit
d356937660
1 changed files with 1 additions and 1 deletions
  1. 2
      server/models/users.js

2
server/models/users.js

@ -550,7 +550,7 @@ module.exports = class User extends Model {
const dupUsr = await WIKI.models.users.query().select('id').where({
email,
providerKey: usr.providerKey
})
}).first()
if (dupUsr) {
throw new WIKI.Error.AuthAccountAlreadyExists()
}

Loading…
Cancel
Save