feat: update keycloak add

This commit is contained in:
hanif salafi 2025-09-20 13:17:44 +07:00
parent 974daf4c25
commit 497197113b
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package config
import (
"context"
"errors"
"github.com/Nerzal/gocloak/v13"
)
@ -73,7 +74,7 @@ func (_keycloak *KeycloakConfig) CreateUser(fullname string, email string, usern
group = append(group, "medols")
user := gocloak.User{
FirstName: gocloak.StringP(fullname),
LastName: gocloak.StringP(""),
LastName: gocloak.StringP(fullname),
Email: gocloak.StringP(email),
Enabled: gocloak.BoolP(true),
Username: gocloak.StringP(username),