Page MenuHomePhabricator

LoginNotify and SUL3: Two emails are sent for a new device login when logging in on a SUL3 wiki
Closed, ResolvedPublicBUG REPORT

Description

Summary

On a SUL3 enabled wiki, the MediaWiki-extensions-LoginNotify extension causes two emails to be sent for the same successful login from a new device.

Background

User story

  • As a user, I log into my account from a new device
  • I see two emails indicating I've logged in from a new device
  • I am worried that someone else has logged into my account, as it appears two new devices have been used to log into my account

Technical notes

  • Appears to be AuthManagerAuthenticateAudit being called twice for the same successful login
  • Fix may be the same as T385572, but may be different if calling the hook twice is going to remain

Acceptance criteria

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Dreamy_Jazz changed the subtype of this task from "Task" to "Bug Report".Feb 4 2025, 1:37 PM

Change #1118249 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@master] Suppress login audit hook in local leg of SUL3 authentication

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

Change #1118249 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Suppress login audit hook in local leg of SUL3 authentication

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

Change #1119874 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Suppress login audit hook in local leg of SUL3 authentication

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

Change #1119874 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.44.0-wmf.16] Suppress login audit hook in local leg of SUL3 authentication

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

Mentioned in SAL (#wikimedia-operations) [2025-02-17T14:21:19Z] <tgr@deploy2002> Started scap sync-world: Backport for [[gerrit:1119874|Suppress login audit hook in local leg of SUL3 authentication (T385574 T385572)]]

Mentioned in SAL (#wikimedia-operations) [2025-02-17T14:26:30Z] <tgr@deploy2002> tgr: Backport for [[gerrit:1119874|Suppress login audit hook in local leg of SUL3 authentication (T385574 T385572)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-02-17T14:49:02Z] <tgr@deploy2002> Finished scap sync-world: Backport for [[gerrit:1119874|Suppress login audit hook in local leg of SUL3 authentication (T385574 T385572)]] (duration: 27m 43s)