[livejournal] r23391: LJSUP-14416: Fix order of actions while ...

Nov 29, 2012 11:24


Committer: amyshkinLJSUP-14416: Fix order of actions while user login to LJ (for suspicious logins detection)

U trunk/htdocs/login.bml

Modified: trunk/htdocs/login.bml
===================================================================
--- trunk/htdocs/login.bml 2012-11-29 10:52:05 UTC (rev 23390)
+++ trunk/htdocs/login.bml 2012-11-29 11:24:45 UTC (rev 23391)
@@ -391,8 +391,8 @@
my $exptype = ($POST{'expire'} eq "never" || $POST{'remember_me'}) ? "long" : "short";
my $bindip = ($POST{'bindip'} eq "yes") ? BML::get_remote_ip() : "";

+ LJ::run_hooks('user_login', $u);
$u->make_login_session($exptype, $bindip);
- LJ::run_hooks('user_login', $u);
$cursess = $u->session;

return if $want_success_redirect->();

zilogic, livejournal, bml, amyshkin

Previous post Next post
Up