mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 11:56:01 +00:00
fix bug in user token generation (#16098)
Co-authored-by: Pere Miquel Brull <peremiquelbrull@gmail.com>
This commit is contained in:
parent
bd3f47a563
commit
affe77fdd5
@ -1282,7 +1282,7 @@ public class UserResource extends EntityResource<User, UserRepository> {
|
||||
User user =
|
||||
repository.getByName(
|
||||
null, userName, getFields("roles,email,isBot"), Include.NON_DELETED, false);
|
||||
if (Boolean.FALSE.equals(user.getIsBot())) {
|
||||
if (user.getIsBot() == null || Boolean.FALSE.equals(user.getIsBot())) {
|
||||
// Create Personal Access Token
|
||||
JWTAuthMechanism authMechanism =
|
||||
JWTTokenGenerator.getInstance()
|
||||
|
Loading…
x
Reference in New Issue
Block a user