Skip to content

Commit a71eefb

Browse files
authored
Fix/get sms auth working again (#26)
* debug SMS auth * remove old code
1 parent db49bb5 commit a71eefb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

controllers/auth/phonenumber.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,10 @@ exports.postSmsCode = (req, res, next) => {
174174
return res.redirect(authorizeUrl);
175175
}
176176

177-
req.brute.reset(() => {
178-
//log the succesfull login
179-
authService.logSuccessFullLogin(req)
180-
.then (() => { redirectToAuthorisation(); })
181-
.catch (() => { redirectToAuthorisation(); });
182-
});
177+
//log the succesfull login
178+
authService.logSuccessFullLogin(req)
179+
.then (() => { redirectToAuthorisation(); })
180+
.catch (() => { redirectToAuthorisation(); });
183181
})
184182
.catch((err) => {
185183
next(err);

0 commit comments

Comments
 (0)