rvr-nextgen/views/login/reset_password.php

24 lines
1.5 KiB
PHP
Raw Normal View History

2023-04-08 00:42:55 +02:00
@extends(templates/layout_normal)
@section(main)
<h2>Reset password</h2>
2023-05-01 19:18:48 +02:00
<div class="box compactBox">
2023-04-08 00:42:55 +02:00
<?php if ($success) : ?>
2023-05-02 00:02:38 +02:00
<form id="resetPasswordForm" action="<?= Container::$routeCollection->getRoute('password.reset-action')->generateLink(['token' => $token]) ?>"" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
<p class="formLabel">Email address</p>
<input type="text" class="text big fullWidth" name="email" autocomplete="username" value="<?= $email ?>" disabled>
<p class="formLabel marginTop">Password</p>
<input type="password" class="text big fullWidth" name="password" autocomplete="new-password" required minlength="6" autofocus>
<p class="formLabel marginTop">Password confirmation</p>
<input type="password" class="text big fullWidth" name="password_confirm" autocomplete="new-password" required minlength="6">
2023-04-08 00:42:55 +02:00
<p id="resetPasswordFormError" class="formError justify marginTop"></p>
<div class="right">
<button class="marginTop" type="submit">Reset password</button>
</div>
</form>
<?php else: ?>
2023-05-02 00:02:38 +02:00
<p class="error justify">Confirming your identity failed. Please check the link you entered, or retry <a href="<?= Container::$routeCollection->getRoute('password.requestReset')->generateLink() ?>" title="Request password reset">requesting password reset</a>!</p>
2023-04-08 00:42:55 +02:00
<?php endif; ?>
</div>
@endsection