We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66b1d8 commit 39e32cdCopy full SHA for 39e32cd
internal/gateway/usecases/get_auth_token.go
@@ -90,7 +90,7 @@ func (s *getAuthTokenUsecase) Run(ctx context.Context) error {
90
return err
91
}
92
93
- username := strings.ToLower(user.Name)
+ username := strings.ToLower(strings.Split(user.GetEmail(), "@")[0])
94
if s.request.GetRole() != string(k8s.DefaultRole) {
95
username = fmt.Sprintf("%s-%s", username, s.request.GetRole())
96
0 commit comments