mirror of
https://github.com/paralus/paralus.git
synced 2026-05-06 08:26:53 +00:00
Add warning about DEV mode when calling userinfo
This commit is contained in:
@@ -466,6 +466,7 @@ func (s *userService) GetUserInfo(ctx context.Context, user *userv3.User) (*user
|
||||
if s.dev {
|
||||
username = user.GetMetadata().GetName()
|
||||
if len(username) == 0 {
|
||||
fmt.Println("Unable to fetch username. Don't use DEV mode when using from UI.")
|
||||
return &userv3.UserInfo{}, fmt.Errorf("username should be provided")
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user