Fixing valid password condition
This commit is contained in:
parent
3ef0ac4257
commit
72ca7fde48
@ -15,7 +15,7 @@ class CommonUser implements User {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean passwordIsValid() {
|
public boolean passwordIsValid() {
|
||||||
return password == null || password.length() > 5;
|
return password != null && password.length() > 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user