Last modified: 2013-11-29 09:29:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59731, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57731 - [RFC] make SpecialChangePassword form text depending on login status of $wgUser
[RFC] make SpecialChangePassword form text depending on login status of $wgUser
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 57579
  Show dependency treegraph
 
Reported: 2013-11-29 08:04 UTC by T. Gries
Modified: 2013-11-29 09:29 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2013-11-29 08:04:27 UTC
make SpecialChangePassword form text depending on login status of $wgUser

During development of Extension:OpenID I found, that I have to apply a small patch to ChangePassword for the case that I want the pre-login user to enter their temporary password.

During development of E:OpenID, I found that the SpecialChangePassword shows the "Temporary password" text only if I apply this patch.

https://gerrit.wikimedia.org/r/#/c/96651/

I suppose, but I am not sure, that this was a design mistake (in the old version of ChangePassword) to check against the passed parameter $user instead of (new version) to check against $wgUser.

This is a request for comments.

Chris answered on Patch Set 4: Code-Review-1:

> This seems like the wrong way to accomplish this, and seems like it relies on another bug that might disappear.
> I'd rather see this use a parameter to showForm(), or use a flag in the class to indicate what wording you want, and then have your code set that.


I still think, that originally $wgUser was meant, perhaps you can ask around.

For my extension OpenID, which calls under certain conditions ChangePassword, an additional parameter would be fine, in order to trigger the correct label text "temporary password".
Comment 1 Gerrit Notification Bot 2013-11-29 08:10:26 UTC
Change 96651 had a related patch set uploaded by Wikinaut:
make SpecialChangePassword form text depending on login status of wgUser

https://gerrit.wikimedia.org/r/96651

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links