Make the "show password" icon on the login page optional.#4580
Make the "show password" icon on the login page optional.#4580nono-gdv wants to merge 4 commits intoowncloud:masterfrom
Conversation
|
Can one of the admins verify this patch? |
|
@jancborchardt @owncloud/designers |
|
Why should this be configurable? Sorry, but I'm against this change |
|
The rationale is here: #4577 Basically, in our context, this is a security issue. |
|
@owncloud-bot this is okay to test |
|
@nono-gdv Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. |
settings/templates/admin.php
Outdated
There was a problem hiding this comment.
while is might be a configuration option (/me still no convinced) it is for sure nothing to be set on the admin page
|
@DeepDiver1975 Well, the configuration interface is the part I struggled with. :-) I could very well do with a hidden option, be it configured in config.php or directly in the database (even though I'm not sure editing stuff directly in the database would be sane). |
|
@nono-gdv A config option inside the config.php is fine. And please leave a comment in config.php.sample |
|
OK, I'm going to add the option to config.php. |
This reverts commit 59afc81.
|
Now you commit nothing (inside two commits ;)) Keep in mind, that this is your branch and you are therefore allowed to force push. |
|
Oops, I still have trouble with git and pull requests. :-) I am currently reworking the patch. |
|
This last version works for me; sorry about the clutter in git log. Additionally I emailed the contributor agreement a few minutes ago. |
| <img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?>" alt=""/> | ||
| <input type="checkbox" id="show" name="show" /> | ||
| <label for="show"></label> | ||
| <?php endif; ?> |
|
@nono-gdv http://try.github.io/levels/1/challenges/1 @karlitschek Can you confirm this? |
|
@kabum Confirmed :-) |
|
Sorry, but either we have this functionality in or we don’t. This is not something which should be configurable. So definitely 👎 for this specific pull request. Let’s find a better solution instead: Currently the toggle is in 3 places, always for the password field:
Now the installation page and the personal settings need this switch so you can double-check the password you just decided. But the log in page actually does not need it. So let’s just cut it there. Pull request upcoming. |
|
Simply removing the toggle from the login page is fine with me. |
|
@nono-gdv sweet! And the pull request was merged. Thanks again for your help! :) |
Conflicts: core/js/js.js
This patch provides the basic functionality. I'm really not sure about the configuration part; this is just the best I could do.
Also, I'm not sure how to localize the strings I have added.