[SUGGESTION] Allow existing users to log in with name/password, new users must use OpenID
OpenPublic

Description

Author: amelia.ireland

Description:
Allow existing users to log in with their name/password, but force new users to create an account using OpenID.

Setting $wgOpenIDLoginOnly = false still allows account creation without OpenID, but setting $wgGroupPermissions['*']['createaccount'] = false (prevents users creating accounts) stops new users from creating new IDs.


Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=46617

bzimport set Reference to bz51331.
bzimport created this task.Via LegacyJul 14 2013, 10:34 PM
Wikinaut added a comment.Via ConduitJul 15 2013, 6:48 AM

originally proposed in https://www.mediawiki.org/wiki/Extension_talk:OpenID#Existing_account_login_.2B_OpenID_account_creation_30279 .

Proposal may be difficult to implement, or even impossible.

An according info or warning can only be shown during the account creation phase.

So standard links

  • "login / create an account" and
  • "login / create an account with OpenID"

must be changed to something like

  • "login with username/password (old users)" and
  • "login with OpenID (new users) / create an account with OpenID".

i.e. the only required changes for the present case are

  • password-based account creation must be disabled
  • choose correct message text for password-based login link (with "create account"
bzimport added a comment.Via ConduitJul 18 2013, 10:44 PM

fgrose wrote:

This feature was working in earlier versions (of Mediawiki or the extension).

We altered the loginprompt message to:
<span style="background:lightgreen;">Please use the OpenID link to register a new account:</span> <span class="plainlinks OpenID">[http://wiki.sugarlabs.org/index.php?title=Special:OpenIDLogin&returnto=Special:UserLogin OpenID]</span> You must have cookies enabled to log in to {{SITENAME}}.

So, with $wgGroupPermissions['*']['createaccount'] = false ,
the standard links are

  • Log in
  • Log in / create account with OpenID

OpenID users seemed to recognize their link or found it with no complaints.

Wikinaut added a comment.Via ConduitAug 11 2013, 9:43 AM

I am working on it.

Wikinaut added a comment.Via ConduitNov 16 2013, 12:32 PM

@Ryan, Chris, other reporters:

THIS is what you wanted. My invitation to code-review:
https://gerrit.wikimedia.org/r/#/c/94977/

Code is live on http://openid-wiki.instance-proxy.wmflabs.org/wiki/ .

Special:Version should show you "4.00 20131115"

Please test.
Please code-review.

@amelia.....:
THIS BUG 51331 is not fully solved by that commit, as it requires additional logic to decided between "old" users and "recent" users. My commit howver prepares this step by introcuding more fine-grained openid-user rights, which then can be the base for implementing exactly what you proposed.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.