Minor, added null check on user and password in FileAuthenticator
This commit is contained in:
@@ -107,6 +107,10 @@ public class FileAuthenticator implements IAuthenticator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean checkValid(String username, String password) {
|
public boolean checkValid(String username, String password) {
|
||||||
|
if (username == null || password == null) {
|
||||||
|
LOG.info("username or password was null");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
String foundPwq = m_identities.get(username);
|
String foundPwq = m_identities.get(username);
|
||||||
if (foundPwq == null) {
|
if (foundPwq == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user