mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-13 16:44:53 +02:00
Add Monstra from HG Commit 683dcb70c4cc
This commit is contained in:
25
plugins/box/users/views/frontend/password_reset.view.php
Normal file
25
plugins/box/users/views/frontend/password_reset.view.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<h3><?php echo __('Reset Password', 'users') ?></h3>
|
||||
<hr>
|
||||
|
||||
<?php if (Notification::get('success')) Alert::success(Notification::get('success')); ?>
|
||||
<?php if (Notification::get('error')) Alert::success(Notification::get('error')); ?>
|
||||
|
||||
<form method="post">
|
||||
<?php
|
||||
echo (Form::hidden('csrf', Security::token()));
|
||||
?>
|
||||
|
||||
<label><?php echo __('Username', 'users'); ?></label><input type="text" value="<?php echo $user_login; ?>" name="login">
|
||||
<?php
|
||||
if (isset($errors['users_user_doesnt_exists'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_user_doesnt_exists'].'</span>';
|
||||
if (isset($errors['users_empty_field'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_empty_field'].'</span>';
|
||||
?>
|
||||
|
||||
<?php if (Option::get('captcha_installed') == 'true') { ?>
|
||||
<label><?php echo __('Captcha'); ?><label>
|
||||
<input type="text" name="answer"><?php if (isset($errors['users_captcha_wrong'])) echo Html::nbsp(3).'<span class="error">'.$errors['users_captcha_wrong'].'</span>'; ?>
|
||||
<?php CryptCaptcha::draw(); ?>
|
||||
<?php } ?>
|
||||
|
||||
<br /><input type="submit" class="btn" value="<?php echo __('Send New Password', 'users'); ?>" name="reset_password_submit">
|
||||
</form>
|
Reference in New Issue
Block a user