mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: bad execution flow in utilities.login
This commit is contained in:
		| @@ -32,9 +32,7 @@ Utilities.login = (req, res) => { | ||||
| 			ok = await user.isPasswordCorrect(uid, password, req.ip); | ||||
| 		} catch (err) { | ||||
| 			if (err.message === '[[error:account-locked]]') { | ||||
| 				helpers.formatApiResponse(429, res, err); | ||||
| 			} else { | ||||
| 				helpers.formatApiResponse(500, res, err); | ||||
| 				return helpers.formatApiResponse(429, res, err); | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user