mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-12 03:53:14 +00:00
Add 404 and 401 check
This commit is contained in:
parent
a60f80cdda
commit
1931b07b0d
5 changed files with 70 additions and 10 deletions
|
@ -4,8 +4,7 @@
|
|||
<h1 class="title is-1 has-text-centered">storage-app</h1>
|
||||
<div class="box is-radiusless">
|
||||
<h4 class="title is-4 has-text-centered">Login</h4>
|
||||
{{debug this}}
|
||||
{{#if (len form.form_errors) includeZero=true }}
|
||||
{{#unless (eq (len form.form_errors) 0) }}
|
||||
<div class="notification is-danger is-light">
|
||||
<b>Login failed with errors:</b>
|
||||
<ul>
|
||||
|
@ -14,7 +13,7 @@
|
|||
{{/each}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/unless}}
|
||||
<form method="post" action="/auth/login">
|
||||
<input type="hidden" name="_csrf" value="{{ csrf_token }}">
|
||||
<div class="field">
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
<div class="navbar-item has-dropdown is-hoverable">
|
||||
<a class="navbar-link">
|
||||
<img src="/static/img/default_user.png" alt="User Image" />
|
||||
{{ debug user }}
|
||||
</a>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue