wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r21860: LJSUP-11381: Create counters for monitor...

Committer: wisest-owl
LJSUP-11381: Create counters for monitoring

U   trunk/cgi-bin/LJ/User.pm
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-05-02 09:24:03 UTC (rev 21859)
+++ trunk/cgi-bin/LJ/User.pm	2012-05-02 09:34:34 UTC (rev 21860)
@@ -7431,6 +7431,10 @@
     my ($u, $priv, $arg) = @_;
     return 0 unless $u;
 
+    LJ::run_hook ("update_counter", {
+        counter => "check_priv",
+    });
+
     LJ::load_user_privs($u, $priv)
         unless $u->{'_privloaded'}->{$priv};
 

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2012-05-02 09:24:03 UTC (rev 21859)
+++ trunk/cgi-bin/ljlib.pl	2012-05-02 09:34:34 UTC (rev 21860)
@@ -1875,6 +1875,10 @@
     my $ip_banned = shift;
     return 0 unless isu($u);
 
+    LJ::run_hook ("update_counter", {
+        counter => "check_password",
+    });
+
     $actual ||= $u->password;
 
     my $user = $u->{'user'};

Tags: livejournal, pl, pm, wisest-owl
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