Commit graph

16 commits

Author SHA1 Message Date
niharika29 970f4bee67 Fix broken LoginNotify emails
Take out legacy strings which Echo doesn't use anymore apparently.

Bug: T163742
Change-Id: I26b7c65c798cee376ba4c750851e7e7669d96e01
2017-04-28 18:50:41 +00:00
jenkins-bot 1aec4a16bd Merge "Change wording to distinguish between new and known devices. Add PLURAL for single/multiple attempts. Separate notifications for new/known devices." 2017-04-24 20:44:34 +00:00
niharika29 86358c39ac Change wording to distinguish between new and known devices.
Add PLURAL for single/multiple attempts. Separate notifications for new/known devices.

No change of wording for known devices.

Bug: T158878
Change-Id: Ie0997123020f9c0e3190fc016e9a4990523d146f
2017-04-22 00:17:14 +00:00
MusikAnimal bafd980e7d Rename functions so as to not confuse with with CheckUser extension
Bug: T162748
Change-Id: If2ad9d65cedc8124b2570e2b66574736a8f112f9
2017-04-18 16:30:48 +00:00
niharika29 d7f69cbab0 Bundle notifications and show a single header message
Bug: T162104
Change-Id: I6056098de7947dc450efdbbce6e42638bec4e2fd
2017-04-13 21:59:41 +00:00
Sam Wilson 8a10910992 Fix various docblock formatting
This fixes some errors in docblock formatting to bring things into
line with MediaWiki coding standards (not all of which are yet
caught by phpcs).

Change-Id: I06b7fc3a9fe09e412b3200b597ce01ef7e7d5ae3
2017-03-25 00:56:01 +00:00
MusikAnimal 4d4e09ccb8 Simplify messages in login notification, still having two
separate messages so wikis can configure them as desired.

Use UserAvatar image instead of padlock in notification

Add link to Special:ChangePassword

Bug: T160031
Change-Id: I3ce1f40993eb82c843823eb62e160a03041eb799
2017-03-23 09:47:16 -07:00
niharika29 4fae81abed Update AddNewAccount->LocalUserCreated hook for LoginNotify
Bug: T135270
Change-Id: I0efbacac13807d802e5cc6e4d226d75050f01d2d
2017-02-23 17:47:03 +00:00
Florian Schmidt 3a1a488b23 Use ExtensionRegistry to check, if Echo is installed
Instead of checking, if an internal class exists, it's more
accurate to require an extension and Extensionregistry will
check, if the requirements are fulfilled. If not, it will throw
and exception.

Depends-On: I2bde10ed08048bc0164446dd59d0d4575870fa54
Change-Id: I85a84988c75290d7df63dec27b69b250e305c896
2017-02-05 11:03:19 +00:00
Umherirrender 57bc309d83 Make LoginNotifyHooks::onUserSaveOptions static
call_user_func_array() expects parameter 1 to be a valid callback,
non-static method LoginNotifyHooks::onUserSaveOptions() should not be
called statically

Change-Id: If1242ff69c65fc4ae48fba990a14b02723867dbd
2017-02-05 11:55:55 +01:00
niharika29 03839f7d96 Remove EchoBasicFormatter - no longer in use
Cleanup LoginNotify

Bug: T151414
Change-Id: Idc8913ebd80418dc40fb97d0a92fb51de5b07abf
2017-02-01 03:34:42 +00:00
addshore a35502916d Fix typos
Change-Id: I49e7e28de3efcb5836e2d99faa357b9f368573b6
2016-09-12 13:37:31 +02:00
Kunal Mehta f58cec3a69 Move tests to tests/phpunit/ and remove hook
The UnitTestsList hook is no longer needed as tests are now
autodiscovered.

Bug: T142120
Change-Id: Ie4abce0cac28c408ed9ba5f4327912a3ca0c2925
2016-08-06 01:30:11 -07:00
Brian Wolff 143d7caa44 Update LoginNotify for AuthManager.
I left the old hook in place for back-compatibility

Bug: T135270
Change-Id: I5800c7de902718958cd4a8edb33cbffd93dd827d
2016-07-07 15:02:11 -04:00
Brian Wolff 78de4c6aa2 Fix phpcs warnings
Change-Id: Ice5ff0bd25c5e2af522965bf8229e64bce70b593
2016-04-26 12:48:00 -04:00
Brian Wolff fea1a38de5 Initial version of extension to notify people on failed login attempts.
Bug: T11838
Change-Id: Id96aff70f06879a7b754b19af8e65c0f641e84e0
2016-03-28 04:29:04 -04:00