Files
sprinkle-uf-tweaks/templates/forms/set-password.html.twig
2026-02-10 11:08:16 +00:00

17 lines
1.2 KiB
Twig

<form id="set-or-reset-password" role="form" action="{{site.uri.public}}/account/set-password" method="post" class="r-form">
{% include "forms/csrf.html.twig" %}
{# Prevent browsers from trying to autofill the password field. See http://stackoverflow.com/a/23234498/2970321 #}
<input type="text" style="display:none" aria-label="hidden spider text">
<input type="password" style="display:none" aria-label="hidden spider password">
<div class="form-group">
<label class="sr-only" for="form-password">{{translate('PASSWORD')}}</label>
<input type="password" name="password" placeholder="{{translate('PASSWORD.BETWEEN', {min: site.password.length.min, max: site.password.length.max})}}" class="form-control" id="form-password">
</div>
<div class="form-group">
<label class="sr-only" for="form-passwordc">{{translate('PASSWORD.CONFIRM')}}</label>
<input type="password" name="passwordc" placeholder="{{translate('PASSWORD.CONFIRM')}}" class="form-control" id="form-passwordc">
</div>
<input type="hidden" name="token" value="{{token}}">
<button type="submit" class="btn btn-block btn-primary">{{translate('PASSWORD.CREATE.SET')}}</button>
</form>