diff options
| author | 2014-03-15 07:08:58 -0400 | |
|---|---|---|
| committer | 2014-03-15 07:20:42 -0400 | |
| commit | 1af723ca68e2558232ef4c4eb5a7c8f41a07bd0c (patch) | |
| tree | 87e6ad8c086237250a220c0124c86c83340b688d /app | |
| parent | 16d527693138d1839996701af87a04c4d582d213 (diff) | |
Add a button to reveal/hide password
I add a button on the configure user interface to reveal the password for 2 seconds and hide it after that period.
See #442
I am not sure if the fallback unicode text for the icon is correct. I can not make it work.
Diffstat (limited to 'app')
| -rw-r--r-- | app/Models/Themes.php | 1 | ||||
| -rw-r--r-- | app/views/configure/users.phtml | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/app/Models/Themes.php b/app/Models/Themes.php index c7099a1df..ed746b7e9 100644 --- a/app/Models/Themes.php +++ b/app/Models/Themes.php @@ -77,6 +77,7 @@ class FreshRSS_Themes extends Minz_Model { 'down' => '▽', 'favorite' => '★', 'help' => 'ⓘ', + 'key' => '⚿', 'link' => '↗', 'login' => '🔒', 'logout' => '🔓', diff --git a/app/views/configure/users.phtml b/app/views/configure/users.phtml index 1a02b0e90..fdc94cd18 100644 --- a/app/views/configure/users.phtml +++ b/app/views/configure/users.phtml @@ -21,6 +21,7 @@ <label class="group-name" for="passwordPlain"><?php echo Minz_Translate::t('password_form'); ?></label> <div class="group-controls"> <input type="password" id="passwordPlain" name="passwordPlain" autocomplete="off" pattern=".{7,}" <?php echo cryptAvailable() ? '' : 'disabled="disabled" '; ?>/> + <a class="btn toggle-password"/><?php echo FreshRSS_Themes::icon('key'); ?></a> <noscript><b><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></b></noscript> </div> </div> @@ -178,6 +179,7 @@ <label class="group-name" for="new_user_passwordPlain"><?php echo Minz_Translate::t('password_form'); ?></label> <div class="group-controls"> <input type="password" id="new_user_passwordPlain" name="new_user_passwordPlain" autocomplete="off" pattern=".{7,}" /> + <a class="btn toggle-password"/><?php echo FreshRSS_Themes::icon('key'); ?></a> <noscript><b><?php echo Minz_Translate::t('javascript_should_be_activated'); ?></b></noscript> </div> </div> |
