A user in https://www.mediawiki.org/wiki/Topic:U5yoiz7dhxmn9eyw asked why his user isn't matched with the Google user, even if he uses the same e-mail address in the MediaWiki installation and in his Google account. We should think about, if it's save to match a user with the e-mail address, if there's no connected user by id.
It could also be possible to link the user by e-mail address and add a new entry in the Google account ID and MediaWiki account ID linking table, so that later the user is matched with the user ID.
From @Anomie's comment, which is exactly what is requested :)
- User registers an account on the wiki, using some non-GoogleLogin authentication mechanism (e.g. normal passwords)
- User sets the email address on the account to a Google address, and confirms it.
- User attempts to use GoogleLogin, with that Google email address.
The user expects that they will be logged in to their account based on the confirmed email address having been set.
Some considerations from the comments:
- The e-mail-address, GoogleLogin is looking for, needs to be confirmed in MediaWiki
- When multiple users have the same e-mail-address, GoogleLogin will not use that for matching a Google-user account to a MediaWiki one