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 5cbd603 commit 8cf7f9eCopy full SHA for 8cf7f9e
templates/app/server/api/user(auth)/user.model(mongooseModels).js
@@ -95,9 +95,10 @@ UserSchema
95
.path('email')
96
.validate(function(value, respond) {
97
var self = this;
98
+ <%_ if(filters.oauth) { _%>
99
if (authTypes.indexOf(this.provider) !== -1) {
100
return respond(true);
- }
101
+ }<% } %>
102
return this.constructor.findOne({ email: value }).exec()
103
.then(function(user) {
104
if (user) {
0 commit comments