feat: reveal password toggle for login form

addresses #869cqrw6w
This commit is contained in:
Björn Fromme
2026-07-01 10:29:30 +02:00
parent 1b0d7ce1a9
commit 022819cbe6
3 changed files with 41 additions and 14 deletions
@@ -59,16 +59,24 @@
autocomplete="username">
</div>
<div class="mb-4">
<div class="mb-4" {{ stimulus_controller('password-reveal') }}>
<label for="password" class="mb-1 font-semibold text-white">
Passwort:
</label>
<input type="password"
id="password"
name="_password"
class="form-field"
required
autocomplete="current-password">
<div class="relative">
<input type="password"
id="password"
name="_password"
class="form-field"
{{ stimulus_target('password-reveal', 'field') }}
required
autocomplete="current-password">
<button type="button"
{{ stimulus_action('password-reveal', 'toggle') }}
class="absolute top-0 right-0 mt-2 mr-2">
{{ icon('eye', 'w-6 h-6 text-gray-500') }}
</button>
</div>
</div>
<button type="submit" class="button button--primary w-full md:w-auto">