Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

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

Committer: amyshkin
LJSUP-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->();

Tags: amyshkin, bml, livejournal, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments