This commit is contained in:
Chris Mann 2023-07-23 17:07:20 +02:00
parent 9482b3ae3b
commit 7f3439da05
2 changed files with 20 additions and 1 deletions

View file

@ -220,6 +220,7 @@ type LoginFormData struct {
WrongUser bool
WrongPass bool
ErrorMessage string
Login bool
}
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {

View file

@ -55,8 +55,26 @@
</li>
</ul>
</li>
<li><a href="/">Se connecter</a>
{{if .Login and .Login.CanAdmin}}
<li><a href="/admin/activate">Administrer LDAP</a>
<ul class="submenu">
<li><a href="/admin/activate">Activer des Utilisateur·ices</a></li>
<li><a href="/admin/users">Utilisateur·ices</a></li>
<li><a href="/admin/groups">Groupes</a></li>
</ul>
</li>
{{end}}
{{if .Login}}
<li><a href="/logout">Se déconnecter</a></li>
{{else}}
<li><a href="/">Se connecter</a>
<ul class="submenu">
<li><a href="/">Se connecter</a></li>
<li><a href="/gpas">Mal de passe oublié</a></li>
<li><a href="/invite/new_account">S'enregistrer</a></li>
</ul>
</li>
{{end}}
</ul>
</div>