? Success

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
1 Jun 2015

This fixes #7054

The password field is filled even when it is only optional thus forcing to enter a value in the Confirm Password field. As this is not expected by the user, the error "Invalid field: Confirm Password" displays.

To test:
3 instances:
1. Edit a user (editing yourself as superuser) through User Manager.
2. Editing your own profile in back-end
3.Editing your own profile in front-end

In these 3 cases, you will see that the password field contains a value.

Patch and retest, then save any user parameter without touching at the passwords fields. Now should be OK.

avatar infograf768 infograf768 - open - 1 Jun 2015
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 1 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 1 Jun 2015
Status New Pending
Easy No Yes
avatar zero-24 zero-24 - change - 1 Jun 2015
Category UI/UX
avatar infograf768
infograf768 - comment - 2 Jun 2015

Note: to test, the password has to be saved first.

avatar colivier
colivier - comment - 2 Jun 2015

I tested on FF, IE, Chrome, Safari and for me all is ok.

Thank you very much for your PR

avatar dgt41
dgt41 - comment - 2 Jun 2015

@test ok here!

avatar zero-24 zero-24 - alter_testresult - 2 Jun 2015 - dgt41: Tested successfully
avatar zero-24 zero-24 - alter_testresult - 2 Jun 2015 - colivier: Tested successfully
avatar zero-24 zero-24 - change - 2 Jun 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 2 Jun 2015

Thanks here :smile: I mark this RTC now.

@infograf768 can you have a look into the comment by @dgt41? as it is just a cosmetic one ;)

Thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7094.

avatar zero-24 zero-24 - change - 2 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 2 Jun 2015
Labels Added: ?
avatar infograf768
infograf768 - comment - 3 Jun 2015

Done and simplified (Thanks @Bakual by using fieldname = a bit faster)

avatar zero-24
zero-24 - comment - 3 Jun 2015

:+1:

avatar Bakual Bakual - change - 3 Jun 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-06-03 10:00:45
Closed_By Bakual
avatar Bakual Bakual - close - 3 Jun 2015
avatar Bakual Bakual - close - 3 Jun 2015
avatar zero-24 zero-24 - close - 3 Jun 2015
avatar Bakual
Bakual - comment - 3 Jun 2015

Merged into stagng. Thanks!

avatar johanjanssens johanjanssens - reference | 345956a - 19 Jun 15
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?
avatar ggppdk
ggppdk - comment - 16 Dec 2015

This does not seem to work anymore

Replace

<?php // Disables autocomplete ?> <input type="text" style="display:none">

with:

<?php // Disables autocomplete ?> <input type="password" style="display:none">
avatar Bakual
Bakual - comment - 16 Dec 2015

You want to do a PR for that?

avatar ggppdk
ggppdk - comment - 17 Dec 2015

Yes i will make a new PR

avatar infograf768
infograf768 - comment - 17 Dec 2015

@ggppdk

While you are at it, I suggest you add it to installation

diff --git a/installation/view/site/tmpl/default.php b/installation/view/site/tmpl/default.php
index 8a46e6c..661aad9 100644
--- a/installation/view/site/tmpl/default.php
+++ b/installation/view/site/tmpl/default.php
@@ -79,4 +79,5 @@
                </div>
                <div class="controls">
+                   <input type="password" style="display:none">
                    <?php echo $this->form->getInput('admin_password'); ?>
                    <p class="help-block"><?php echo JText::_('INSTL_ADMIN_PASSWORD_DESC'); ?></p>
@@ -88,4 +89,5 @@
                </div>
                <div class="controls">
+                   <input type="password" style="display:none">
                    <?php echo $this->form->getInput('admin_password2'); ?>
                </div>
avatar infograf768 infograf768 - head_ref_deleted - 17 Dec 2015
avatar infograf768
infograf768 - comment - 17 Dec 2015

And also for database

diff --git a/installation/view/database/tmpl/default.php b/installation/view/database/tmpl/default.php
index 3cb8eab..2552e64 100644
--- a/installation/view/database/tmpl/default.php
+++ b/installation/view/database/tmpl/default.php
@@ -60,4 +60,5 @@
        </div>
        <div class="controls">
+           <input type="password" style="display:none">
            <?php echo $this->form->getInput('db_pass'); ?>
            <p class="help-block">
avatar ggppdk
ggppdk - comment - 17 Dec 2015

@infograf768
you have better knowledge of the places this is needed

  • maybe it is more easy for you to make this PR ?

a note about the suggested fix, it is suggested in recent forum thread i have read and i have tested it successfully in custom component too

avatar infograf768
infograf768 - comment - 17 Dec 2015

Your fix works fine: I tested it both in installation and for the files that were modified here in #7094.
Try making the PR yourself, including my suggestions. I am sure you can do. :smiley:

avatar ggppdk
ggppdk - comment - 17 Dec 2015

sure i will make during weekend :-)

avatar infograf768
infograf768 - comment - 18 Dec 2015

Forgot, we should also add autocomplete off to the database password field:

diff --git a/installation/model/forms/database.xml b/installation/model/forms/database.xml
index 4fd4508..ecb67af 100644
--- a/installation/model/forms/database.xml
+++ b/installation/model/forms/database.xml
@@ -23,4 +23,5 @@
            <field name="db_pass" type="password" id="db_pass" class="inputbox"
                label="INSTL_DATABASE_PASSWORD_LABEL"
+               autocomplete="off"
                filter="raw"
            />
avatar infograf768
infograf768 - comment - 28 Dec 2015

@ggppdk

I made the patch. Please test #8800

Add a Comment

Login with GitHub to post a comment