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

[ljcom] r12934: LJSUP-14092: Suspicious Login Notificati...

Committer: amyshkin
LJSUP-14092: Suspicious Login Notification
U   trunk/bin/upgrading/en_LJ.dat
U   trunk/cgi-bin/LJ/Hooks/Login.pm
Modified: trunk/bin/upgrading/en_LJ.dat
===================================================================
--- trunk/bin/upgrading/en_LJ.dat	2012-11-21 14:53:05 UTC (rev 12933)
+++ trunk/bin/upgrading/en_LJ.dat	2012-11-22 10:19:15 UTC (rev 12934)
@@ -19629,3 +19629,47 @@
 LiveJournal.com Team
 http://www.livejournal.com
 .
+
+suspisious.login.html.body<<
+Dear [[user]],
+
+We noticed that someone authorised into your LiveJournal account with a new device. Detailed information about this authorisation:
+
+Country: [[country]]
+
+Internet service provider: [[ISP]]
+
+IP address: [[ip]]
+
+If it was you, than everything is fine.
+
+You can check your current login sessions here. If you have any suspicions that someone could have got access to your account, please change your password and find out what else you can do.
+
+Best regards,
+
+LiveJournal Team
+
+http://www.livejournal.com
+.
+
+suspisious.login.plain.body<<
+Dear [[user]],
+
+We noticed that someone authorised into your LiveJournal account with a new device. Detailed information about this authorisation:
+
+Country: [[country]]
+
+Internet service provider: [[ISP]]
+
+IP address: [[ip]]
+
+If it was you, than everything is fine.
+
+You can check your current login sessions here. If you have any suspicions that someone could have got access to your account, please change your password and find out what else you can do.
+
+Best regards,
+
+LiveJournal Team
+
+http://www.livejournal.com
+.

Modified: trunk/cgi-bin/LJ/Hooks/Login.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Login.pm	2012-11-21 14:53:05 UTC (rev 12933)
+++ trunk/cgi-bin/LJ/Hooks/Login.pm	2012-11-22 10:19:15 UTC (rev 12934)
@@ -122,8 +122,9 @@
     return if $u->prop('check_suspicious') eq 'no';
 
     if ( LJ::CheckLogin::is_suspicious($u) ) {
-        LJ::CheckLogin::notify( $u ) unless $LJ::DISABLED{'suspicious_login_notify'};
-        LJ::CheckLogin::save_stat( $u ) unless $LJ::DISABLED{'suspicious_login_statistics'};
+        my $id;
+        $id = LJ::CheckLogin::save_stat( $u ) unless $LJ::DISABLED{'suspicious_login_statistics'};
+        LJ::CheckLogin::notify( $u, $id ) unless $LJ::DISABLED{'suspicious_login_notify'};
     }
 });
 

Tags: amyshkin, dat, ljcom, pm, 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