diff --git a/invite.go b/invite.go index d9e50e7..07cb6f9 100644 --- a/invite.go +++ b/invite.go @@ -149,7 +149,7 @@ func handleNewAccount(w http.ResponseWriter, r *http.Request, l *ldap.Conn, invi // tryCreateAccount(l, data, password1, password2, invitedBy) } else { - data.SuggestPW = suggestPassword() + data.SuggestPW = fmt.Sprint("%s", suggestPassword()) } templateInviteNewAccount.Execute(w, data) diff --git a/templates/invite_new_account.html b/templates/invite_new_account.html index d791721..143131d 100644 --- a/templates/invite_new_account.html +++ b/templates/invite_new_account.html @@ -62,7 +62,7 @@ -

Utiliser ce mot de passe :

{{ .SuggestPW }}

+

Générer un mot de passe :

{{ .SuggestPW }}