From d3bf04be03c551b9fdc06e844a2fd57231c68981 Mon Sep 17 00:00:00 2001
From: Chris Mann
Date: Thu, 20 Jul 2023 19:43:52 +0200
Subject: [PATCH] Front-End Stuff
---
invite.go | 2 +-
templates/invite_new_account.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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 }}