try to fix display name
This commit is contained in:
parent
57accbddbb
commit
d3df781e33
|
@ -37,7 +37,7 @@ func (h *AuthHandler) Onboarding(w http.ResponseWriter, r *http.Request) {
|
||||||
if onboardingmap["admin"].(bool) {
|
if onboardingmap["admin"].(bool) {
|
||||||
groups = append(groups, onboardingmap["group"].(string)+":admin")
|
groups = append(groups, onboardingmap["group"].(string)+":admin")
|
||||||
}
|
}
|
||||||
|
display_name := fmt.Sprint(r.FormValue("first_name")) + " " + fmt.Sprint(r.FormValue("last_name"))
|
||||||
account := &ma.Account{
|
account := &ma.Account{
|
||||||
Authentication: ma.AccountAuth{
|
Authentication: ma.AccountAuth{
|
||||||
Local: ma.LocalAuth{
|
Local: ma.LocalAuth{
|
||||||
|
@ -46,11 +46,13 @@ func (h *AuthHandler) Onboarding(w http.ResponseWriter, r *http.Request) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Namespace: "parcoursmob",
|
Namespace: "parcoursmob",
|
||||||
|
|
||||||
Data: map[string]any{
|
Data: map[string]any{
|
||||||
"first_name": r.FormValue("first_name"),
|
"display_name": display_name,
|
||||||
"last_name": r.FormValue("last_name"),
|
"first_name": r.FormValue("first_name"),
|
||||||
"email": onboardingmap["username"],
|
"last_name": r.FormValue("last_name"),
|
||||||
"groups": groups,
|
"email": onboardingmap["username"],
|
||||||
|
"groups": groups,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue