Compare commits
1 Commits
migrate-en
...
2926-bug-u
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
167c85e73f |
@@ -139,6 +139,9 @@ public class UserService implements UserServiceInterface {
|
||||
User user =
|
||||
findByUsernameIgnoreCase(username)
|
||||
.orElseThrow(() -> new UsernameNotFoundException("User not found"));
|
||||
if(user.getApiKey() == null || user.getApiKey().length() == 0) {
|
||||
user = addApiKeyToUser(username);
|
||||
}
|
||||
return user.getApiKey();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user