up
This commit is contained in:
@@ -73,11 +73,9 @@ public class UserService {
|
||||
.execute(Tuple.of(loginOrEmail, loginOrEmail))
|
||||
.map(rows -> {
|
||||
if (rows.size() == 0) {
|
||||
System.out.println("User not found: " + loginOrEmail);
|
||||
return null;
|
||||
}
|
||||
Row row = rows.iterator().next();
|
||||
System.out.println("User found, active=" + row.getBoolean("active"));
|
||||
return toJson(row);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user