diff options
| author | 2014-09-18 14:18:00 +0200 | |
|---|---|---|
| committer | 2014-09-18 14:18:00 +0200 | |
| commit | 23609ad858552c54fc3fe8d9f8e2f7d966fd28a1 (patch) | |
| tree | 06b4ad452619571122a7547f22af1c67d79dcb08 /app/views/index | |
| parent | 5c752f71e9bd07d2e8f9ffd4b246cf4216c7a85f (diff) | |
Add page for reset auth type [NOT WORKING]
See https://github.com/marienfressinaud/FreshRSS/issues/521
Diffstat (limited to 'app/views/index')
| -rw-r--r-- | app/views/index/resetAuth.phtml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/app/views/index/resetAuth.phtml b/app/views/index/resetAuth.phtml new file mode 100644 index 000000000..7f3b54bdb --- /dev/null +++ b/app/views/index/resetAuth.phtml @@ -0,0 +1,33 @@ +<div class="post content"> + <h1><?php echo _t('reset_auth'); ?></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> + <?php echo $this->message['body']; ?> + </p> + <?php } ?> + + <?php if (!$this->no_form) { ?> + <form id="loginForm" method="post" action="<?php echo _url('index', 'resetAuth'); ?>"> + <p class="alert alert-warn"> + <span class="alert-head"><?php echo _t('attention'); ?></span> + <?php echo _t('auth_will_reset'); ?> + </p> + + <div> + <label for="username"><?php echo _t('username'); ?></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('reset'); ?></button> + </div> + </form> + <?php } ?> +</div> |
