Track key authentication metrics
authorGergő Tisza <gtisza@wikimedia.org>
Tue, 21 Apr 2015 08:33:40 +0000 (08:33 +0000)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 28 Jul 2015 22:31:07 +0000 (22:31 +0000)
commite7020fdb22f37403a3ecf673f90cddf5e90f9593
treee6f5a26b4c61983476c8ce4abbf654a22a0c2395
parent699e817ca43109e540e8d7a80e3903737d560818
Track key authentication metrics

Logs a 'login' event for logins via Special:UserLogin
and API action=login. Does not log for implicit login after
account creation and for autologin (e.g. based on an active
CentralAuth global login).

Logs an 'accountcreation' event for account creation via
Special:UserLogin/signup and API action=createaccount. Does not
log for autocreation.

Both successful and unsuccessful attempts are logged, except for
failures that throw exceptions (internal errors + some permission
errors).

Bug: T91701
Change-Id: I101b11d05400b073065da10f1e537412309d9102
includes/api/ApiCreateAccount.php
includes/api/ApiLogin.php
includes/specials/SpecialUserlogin.php