Basic logout flow and better UX
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
{{define "title"}}Connexion{{end}}
|
||||
{{define "title"}}Courriel envoyé.{{end}}
|
||||
{{define "body"}}
|
||||
<section class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
|
20
cmd/server/template/layouts/error.html.tmpl
Normal file
20
cmd/server/template/layouts/error.html.tmpl
Normal file
@ -0,0 +1,20 @@
|
||||
{{define "title"}}Erreur{{end}}
|
||||
{{define "body"}}
|
||||
<section class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column is-4 is-offset-4">
|
||||
<div class="message is-danger">
|
||||
<div class="message-body">
|
||||
<p class="title is-size-4 has-text-danger">{{ .ErrorTitle }}</p>
|
||||
<p>{{ .ErrorDescription }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
{{template "base" .}}
|
22
cmd/server/template/layouts/home.html.tmpl
Normal file
22
cmd/server/template/layouts/home.html.tmpl
Normal file
@ -0,0 +1,22 @@
|
||||
{{define "title"}}Connexion{{end}}
|
||||
{{define "body"}}
|
||||
<section class="hero is-fullheight">
|
||||
<div class="hero-body">
|
||||
<div class="container has-text-centered">
|
||||
<div class="columns">
|
||||
<div class="column is-4 is-offset-4">
|
||||
<p class="has-text-black title">
|
||||
Hydra Password<span class="has-text-grey">less</span>
|
||||
</p>
|
||||
<p class="is-size-7">
|
||||
Version: {{ .BuildInfo.ProjectVersion }} |
|
||||
Réf.: {{ .BuildInfo.GitRef }} |
|
||||
Date de construction: {{ .BuildInfo.BuildDate }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{end}}
|
||||
{{template "base" .}}
|
@ -7,7 +7,7 @@
|
||||
<div class="column is-4 is-offset-4">
|
||||
{{template "flash" .}}
|
||||
<p class="has-text-black title">
|
||||
Connexion
|
||||
Connexion à <a href="{{.ClientURI }}" class="has-text-info">{{ .ClientName }}</a>
|
||||
</p>
|
||||
<p class="has-text-black subtitle">
|
||||
Veuillez entrer votre adresse courriel.
|
||||
@ -21,6 +21,14 @@
|
||||
name="email" placeholder="john.doe@email.com" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="field is-grouped is-grouped-right">
|
||||
<p class="control">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" name="rememberMe">
|
||||
Se souvenir de moi
|
||||
</label>
|
||||
</p>
|
||||
</div>
|
||||
{{ .csrfField }}
|
||||
<input name="challenge" type="hidden" value="{{ .LoginChallenge }}" />
|
||||
<button type="submit" class="button is-link is-medium is-block is-fullwidth">Envoyer</button>
|
||||
|
@ -4,8 +4,8 @@
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td>
|
||||
<p>Bonjour {{ .Email }}</p>
|
||||
<p>Vous avez demandé à accéder à l'application "{{ .AppTitle }}". Cliquez sur le lien ci dessous pour vous authentifier. </p>
|
||||
<p>Bonjour,</p>
|
||||
<p>Vous avez demandé à accéder à l'application <a href="{{ .ClientURI }}">"{{ .ClientName }}"</a>. Cliquez sur le lien ci dessous pour vous authentifier. </p>
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="btn btn-primary">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user