? Success

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
3 Feb 2016

If you try and create an account through the user profiles you will find that whatever password you set in the $response variable in your authentication plugin, then the password is autogenerated. This is for two reasons:

  1. The variable user (which is just a typehinted array instance of JAuthenticationResponse) doesn't contain a password_clear property ever),

  2. In JUser if you are going to set a password will use the password property password_clear is just there to access a property for things like emails when resetting a password. So we set the password_clear and password property (just like in method UsesrModelReset::processResetComplete()).

This patch therefore means that if you choose not to enter a password property into the $response object of your authentication plugin then it will just be auto-generated still. If you choose to set it then it will use that password rather than the Joomla generated password.

avatar wilsonge wilsonge - open - 3 Feb 2016
avatar wilsonge wilsonge - change - 3 Feb 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 3 Feb 2016
Labels Added: ?
avatar brianteeman
brianteeman - comment - 1 Mar 2016

@wilsonge If I read this correctly you are saying that if you create a new user in the admin then it doesnt matter what you enter in the password field as Joomla will replace that with an auto-generated password. I cant replicate that - maybe I am misunderstanding something in the how to replicate


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

avatar brianteeman brianteeman - change - 1 Mar 2016
Status Pending Information Required
avatar wilsonge
wilsonge - comment - 1 Mar 2016

No it's basically if you have a authentication plugin that runs to a service outside of Joomla which authenticates successfully - the API should allow said authentication plugin to specify the password (optionally) and it will automatically create a Joomla user with that password. But actually what happens is that whatever password the plugin sets is overridden with a random password.

I will try and create a dummy authentication plugin over the next two days (priority this evening is to get the Joomla Update to trigger the utf8mb4 upgrade) to demonstrate this behaviour - as I came across it at work with a plugin I'm not able to share :(

avatar brianteeman
brianteeman - comment - 1 Mar 2016

No wonder I couldn't replicate
On 1 Mar 2016 10:03 am, "George Wilson" notifications@github.com wrote:

No it's basically if you have a authentication plugin that runs to a
service outside of Joomla which authenticates successfully - the API should
allow said authentication plugin to specify the password (optionally) and
it will automatically create a Joomla user with that password. But actually
what happens is that whatever password the plugin sets is overridden with a
random password.

I will try and create a dummy authentication plugin over the next two days
(priority this evening is to get the Joomla Update to trigger the utf8mb4
upgrade) to demonstrate this behaviour - as I came across it at work with a
plugin I'm not able to share :(


Reply to this email directly or view it on GitHub
#9064 (comment).

avatar wilsonge
wilsonge - comment - 1 Mar 2016

It's a pretty edge case - but as the code is there to support it - it may as well work :P

avatar brianteeman brianteeman - change - 1 Mar 2016
Category Authentication
avatar brianteeman brianteeman - change - 7 May 2016
Status Information Required Pending
avatar wilsonge wilsonge - change - 29 Jul 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 29 Jul 2016
Category Authentication Plugins Front End Authentication
avatar wilsonge wilsonge - change - 29 Jul 2016
Labels Removed: ?
avatar roland-d
roland-d - comment - 1 Aug 2016

@wilsonge Are you going to provide the plugin for testing?


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Jan 2017

@wilsonge @roland-d asking if there is something to test?

avatar jeckodevelopment
jeckodevelopment - comment - 6 Jan 2017

@franz-wohlkoenig we have some conflicts with this PR
@wilsonge please fix the conflicting file :)

avatar mbabker
mbabker - comment - 21 May 2017

Closing PR as abandoned since there have been no updates in over a year.

avatar mbabker mbabker - change - 21 May 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 22:19:45
Closed_By mbabker
avatar mbabker mbabker - close - 21 May 2017

Add a Comment

Login with GitHub to post a comment