diff options
| author | 2014-10-07 16:58:11 +0200 | |
|---|---|---|
| committer | 2014-10-07 16:58:11 +0200 | |
| commit | dbf57266b297c3f831602ec4f451c27a5ad71e6b (patch) | |
| tree | f8cd10a71e2def0c61934e8751012829e4349b1f /app/views/auth/reset.phtml | |
| parent | 1252b3dd867e59917cf303f0c39c7da938b8ce32 (diff) | |
Reset auth system comes back!
It has moved to authController.
Diffstat (limited to 'app/views/auth/reset.phtml')
| -rw-r--r-- | app/views/auth/reset.phtml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/views/auth/reset.phtml b/app/views/auth/reset.phtml new file mode 100644 index 000000000..e501555c4 --- /dev/null +++ b/app/views/auth/reset.phtml @@ -0,0 +1,33 @@ +<div class="prompt"> + <h1><?php echo _t('auth_reset'); ?></h1> + + <?php if (!empty($this->message)) { ?> + <p class="alert <?php echo $this->message['status'] === 'bad' ? 'alert-error' : 'alert-warn'; ?>"> + <span class="alert-head"><?php echo $this->message['title']; ?></span><br /> + <?php echo $this->message['body']; ?> + </p> + <?php } ?> + + <?php if (!$this->no_form) { ?> + <form id="crypto-form" method="post" action="<?php echo _url('auth', 'reset'); ?>"> + <p class="alert alert-warn"> + <span class="alert-head"><?php echo _t('attention'); ?></span><br /> + <?php echo _t('auth_will_reset'); ?> + </p> + + <div> + <label for="username"><?php echo _t('username_admin'); ?></label> + <input type="text" id="username" name="username" size="16" required="required" maxlength="16" pattern="[0-9a-zA-Z]{1,16}" autofocus="autofocus" /> + </div> + <div> + <label for="passwordPlain"><?php echo _t('password'); ?></label> + <input type="password" id="passwordPlain" required="required" /> + <input type="hidden" id="challenge" name="challenge" /><br /> + <noscript><strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript> + </div> + <div> + <button id="loginButton" type="submit" class="btn btn-important"><?php echo _t('submit'); ?></button> + </div> + </form> + <?php } ?> +</div> |
