Page MenuHomePhabricator

Allow display of login link on create account form
Closed, ResolvedPublic

Description

Background

For certain workflows where it is expected that users will not have accounts, but some may, it would be useful to add a login link to the bottom of the create account. Currently this is not possible. It is proposed we allow optional display of this link via a query string parameter.

User story

As a user who is responding to a certain campaign (e.g. email or on platform prompt) that requires an account, I want to be able to signal that I have an account and complete the process via login.

Requirements

  • It should be possible to toggle on a login link that shows at the bottom of the form

BDD

Test Steps

  • For QA engineer to fill out

Design

Screenshot 2026-08-18 at 12.08.41 PM.png (1,008×1,480 px, 153 KB)

Acceptance criteria

  • Add acceptance criteria

Communication criteria - does this need an announcement or discussion?

  • Add communication criteria

Rollback plan

Not necessary since this is opt in only.

This task was created by Version 1.2.0 of the Web team task template using phabulous

Event Timeline

Jdlrobson-WMF raised the priority of this task from Medium to High.

Change #1326902 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] SpecialCreateAccount: Add a link to the login form

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

Change #1326902 merged by jenkins-bot:

[mediawiki/core@master] SpecialCreateAccount: Add a link to the login form

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

Jdlrobson-WMF updated the task description. (Show Details)

Looks great! Thanks for the review @Michael

https://auth.wikimedia.beta.wmcloud.org/enwiki/wiki/Special:CreateAccount

Screenshot 2026-08-26 at 3.45.34 PM.png (1,068×1,568 px, 175 KB)

https://auth.wikimedia.beta.wmcloud.org/enwiki/wiki/Special:CreateAccount?showlogin=1

Screenshot 2026-08-26 at 3.45.51 PM.png (1,030×1,450 px, 141 KB)

I'll test this in production next week as it rolls on the train and tag verified when done.

Change #1333032 had a related patch set uploaded (by Pikne; author: Pikne):

[mediawiki/core@master] SpecialCreateAccount: use different button text for link to login form

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

@Jdlrobson-WMF I believe showlogin=1 will get stripped from the URL when going to Special:CreateAccount by the CentralAuth extension. We'll need to ensure showlogin gets preserved - it looks like the Campaigns extension uses an onAuthPreserveQueryParams hook handler for the campaign query param.

Jdlrobson-WMF updated the task description. (Show Details)

Reopening with the new acceptance criteria. Now this is on production I can see it's not quite working as expected. Thanks @AnneT patch incoming!

Change #1333255 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@master] Preserve showlogin query parameter on redirects

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

Change #1333032 merged by jenkins-bot:

[mediawiki/core@master] SpecialCreateAccount: use different button text for link to login form

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

Change #1333255 merged by jenkins-bot:

[mediawiki/core@master] Preserve showlogin query parameter on redirects

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

Change #1333277 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/core@wmf/1.47.0-wmf.18] Preserve showlogin query parameter on redirects

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

Jdlrobson-WMF lowered the priority of this task from High to Medium.Tue, Sep 1, 6:51 PM

Change #1333277 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.18] Preserve showlogin query parameter on redirects

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

Mentioned in SAL (#wikimedia-operations) [2026-09-01T21:14:52Z] <jdlrobson@deploy1003> Started scap sync-world: Backport for [[gerrit:1333293|Merge branch 'master' into wmf_deploy]], [[gerrit:1333277|Preserve showlogin query parameter on redirects (T435248)]]

Mentioned in SAL (#wikimedia-operations) [2026-09-01T21:20:48Z] <jdlrobson@deploy1003> jdlrobson: Backport for [[gerrit:1333293|Merge branch 'master' into wmf_deploy]], [[gerrit:1333277|Preserve showlogin query parameter on redirects (T435248)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-09-01T21:38:48Z] <jdlrobson@deploy1003> Finished scap sync-world: Backport for [[gerrit:1333293|Merge branch 'master' into wmf_deploy]], [[gerrit:1333277|Preserve showlogin query parameter on redirects (T435248)]] (duration: 23m 55s)

Jdlrobson-WMF claimed this task.
Jdlrobson-WMF updated the task description. (Show Details)

I added the fix to the current train. https://test.wikipedia.org/wiki/Special:CreateAccount?showlogin=1 is now redirecting correctly.
English Wikipedia will be working on Thursday.