You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reject(newParse.Error(Parse.Error.OBJECT_NOT_FOUND,'Your account is locked due to multiple failed login attempts. Please try again after '+this._config.accountLockout.duration+' minute(s)'));
136
-
}else{
137
-
resolve();
113
+
thrownewParse.Error(Parse.Error.OBJECT_NOT_FOUND,'Your account is locked due to multiple failed login attempts. Please try again after '+this._config.accountLockout.duration+' minute(s)');
138
114
}
139
-
})
140
-
.catch(err=>{
141
-
reject(err);
142
115
});
143
-
});
144
116
}
145
117
146
118
/**
@@ -151,21 +123,13 @@ export class AccountLockout {
151
123
* do nothing
152
124
*/
153
125
_handleFailedLoginAttempt(){
154
-
returnnewPromise((resolve,reject)=>{
155
-
this._initFailedLoginCount()
126
+
returnthis._initFailedLoginCount()
156
127
.then(()=>{
157
128
returnthis._incrementFailedLoginCount();
158
129
})
159
130
.then(()=>{
160
131
returnthis._setLockoutExpiration();
161
-
})
162
-
.then(()=>{
163
-
resolve();
164
-
})
165
-
.catch(err=>{
166
-
reject(err);
167
132
});
168
-
});
169
133
}
170
134
171
135
/**
@@ -175,23 +139,14 @@ export class AccountLockout {
0 commit comments