mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 20:06:19 +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 =
|
User user =
|
||||||
repository.getByName(
|
repository.getByName(
|
||||||
null, userName, getFields("roles,email,isBot"), Include.NON_DELETED, false);
|
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
|
// Create Personal Access Token
|
||||||
JWTAuthMechanism authMechanism =
|
JWTAuthMechanism authMechanism =
|
||||||
JWTTokenGenerator.getInstance()
|
JWTTokenGenerator.getInstance()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user