We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecea989 commit 5f8805dCopy full SHA for 5f8805d
app/templates/server/api/user(auth)/user.model(mongooseModels).js
@@ -95,6 +95,9 @@ UserSchema
95
.path('email')
96
.validate(function(value, respond) {
97
var self = this;
98
+ if (authTypes.indexOf(this.provider) !== -1) {
99
+ return respond(true);
100
+ }
101
return this.constructor.findOne({ email: value }).exec()
102
.then(function(user) {
103
if (user) {
0 commit comments