1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-24 12:02:51 +00:00

don't use param for passing the redirect info

revert some changes and also rename catcher to `admin_login` to make its
function clearer

Co-authored-by: BlackDex <black.dex@gmail.com>
This commit is contained in:
Stefan Melmuk 2022-11-28 17:35:36 +01:00
parent fa7dbedd5d
commit 0aa33a2cb4
No known key found for this signature in database
GPG key ID: 817020C608FE9C09
2 changed files with 36 additions and 32 deletions

View file

@ -12,8 +12,11 @@
<h6 class="mb-0 text-white">Authentication key needed to continue</h6>
<small>Please provide it below:</small>
<form class="form-inline" method="post">
<form class="form-inline" method="post" action="{{urlpath}}/admin">
<input type="password" class="form-control w-50 mr-2" name="token" placeholder="Enter admin token" autofocus="autofocus">
{{#if redirect}}
<input type="hidden" id="redirect" name="redirect" value="/{{redirect}}">
{{/if}}
<button type="submit" class="btn btn-primary">Enter</button>
</form>
</div>