Added extra check for userId
This commit is contained in:
parent
a428ba9d49
commit
f8967fa337
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ public class AuthorizationService {
|
|||
}
|
||||
|
||||
public AuthResult findAuthInfo(String userId, String password) throws Exception {
|
||||
if (userId.length() > 12) {
|
||||
return new AuthResult(false, SignalError.ERROR_005);
|
||||
}
|
||||
String hashedPassword = hashPassword(password);
|
||||
List<String> productCodes = mapper.findUserProductCodes(userId, hashedPassword);
|
||||
if (productCodes.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue