add reminder

This commit is contained in:
Andrey Kuvshinov
2020-08-27 23:40:34 +03:00
parent 68d1d63f0d
commit f12eb20040
6 changed files with 116 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
<p><label for="username" id="formtitle">Вход в личный кабинет*</label></p>
<p><input name="username" type="email" autocomplete="on" placeholder="Введите электронную почту" required autofocus /><span class="icon"><i class="far fa-envelope"></i></span></p>
<p><input name="password" type="password" minlength="5" autocomplete="current-password" placeholder="Введите пароль" required ><span class="icon"><i class="fas fa-key"></i></p>
<p><a href="<?=SITE?>restoration">забыли пароль</a></p>
<p><a href="<?=SITE?>reminder">забыли пароль</a></p>
<p><input class="submit" type="submit" value="ВОЙТИ"></p>
</form>

0
app/views/noreset.phtml Normal file
View File

16
app/views/reminder.phtml Normal file
View File

@@ -0,0 +1,16 @@
<div id="container_form">
<h1>Восстановление пароля</h1>
<?if (isset($error)):?>
<div id="error" style="color: red;"><?=$error?></div>
<?endif?>
<form method="POST" action="reminder">
<p><input name="resetmail" type="email" autocomplete="on" placeholder="Введите электронную почту" required autofocus /><span class="icon"><i class="far fa-envelope"></i></span></p>
<p><input class="submit" type="submit" value="ОТПРАВИТЬ"></p>
</form>
</div>

View File

@@ -0,0 +1,5 @@
<h1>Ссылка на восстановление пароля выслана на Вашу электронную почту</h1>
<?if (isset($link)):?>
<div><a href="<?=$link?>">Для установки пароля пройдите по ссылке</a></div>
<?endif?>