G Pas
This commit is contained in:
parent
9482b3ae3b
commit
7f3439da05
2 changed files with 20 additions and 1 deletions
1
login.go
1
login.go
|
@ -220,6 +220,7 @@ type LoginFormData struct {
|
||||||
WrongUser bool
|
WrongUser bool
|
||||||
WrongPass bool
|
WrongPass bool
|
||||||
ErrorMessage string
|
ErrorMessage string
|
||||||
|
Login bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
|
||||||
|
|
|
@ -55,8 +55,26 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</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>
|
<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>
|
</ul>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue