[bugfix] fix oob token route, update templates+css for oob and errors (#1519)

This commit is contained in:
f0x52 2023-02-18 16:47:42 +01:00 committed by GitHub
commit 59b2e10787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 22 deletions

View file

@ -17,10 +17,15 @@
*/ -}}
{{ template "header.tmpl" .}}
<main>
<section class="error">
<span>❌</span> <pre>{{.error}}</pre>
<span>Request ID</span> <code>{{.requestID}}</code>
</section>
</main>
<main>
<section class="error">
<h1>An error occured:</h1>
<pre>{{.error}}</pre>
{{if .requestID}}
<div>
<span>Request ID:</span> <code>{{.requestID}}</code>
</div>
{{end}}
</section>
</main>
{{ template "footer.tmpl" .}}

View file

@ -17,10 +17,11 @@
*/ -}}
{{ template "header.tmpl" .}}
<main>
<h1>Hi {{ .user }}!</h1>
<p>Here's your out-of-band token with scope <em>{{.scope}}</em>:</p>
<p><code>{{ .oobToken }}</code><p>
<p>Use it wisely!</p>
</main>
<main>
<section class="oob-token">
<h1>Hi {{ .user }}!</h1>
<p>Here's your out-of-band token with scope "<em>{{.scope}}</em>", use it wisely:</p>
<code>{{ .oobToken }}</code>
</section>
</main>
{{ template "footer.tmpl" .}}