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

[livejournal] r17491: LJSUP-7017. We need to delete phone numb...

Committer: gprochaev
LJSUP-7017. We need to delete phone number if user now in US IP segment and change self number

U   trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
U   trunk/htdocs/manage/profile/index.bml
Modified: trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm	2010-10-04 06:39:10 UTC (rev 17490)
+++ trunk/cgi-bin/LJ/Widget/SubscribeInterface.pm	2010-10-04 07:17:56 UTC (rev 17491)
@@ -24,7 +24,7 @@
     my (undef, $country) = LJ::GeoLocation->ip_class;
     if ($LJ::DISABLED{smsru} or
         ($country ne 'RU'
-#        and not LJ::SMS::API::RU::Phone->is_users_number_supported($u)
+        and not LJ::SMS::API::RU::Phone->is_users_number_supported($u)
         )
     ){
         @ntypes = grep { $_ ne 'LJ::NotificationMethod::SMSru' ? 1 : 0 } @ntypes;

Modified: trunk/htdocs/manage/profile/index.bml
===================================================================
--- trunk/htdocs/manage/profile/index.bml	2010-10-04 06:39:10 UTC (rev 17490)
+++ trunk/htdocs/manage/profile/index.bml	2010-10-04 07:17:56 UTC (rev 17491)
@@ -849,6 +849,7 @@
                 $dbh->do("REPLACE INTO txtmsg (userid, provider, number, security) VALUES (?, ?, ?, ?)",
                          undef, $u->{'userid'}, $POST{'txtmsg_provider'}, $POST{'txtmsg_number'}, $POST{'txtmsg_security'});
             }
+            LJ::SMS::API::RU::Phone->delete($u->userid);
         } else {
             if ($tminfo->{'number'} && ! $POST{'txtmsg_number'}) {
                 $dbh->do("DELETE FROM txtmsg WHERE userid=?", undef, $u->{'userid'});

Tags: bml, livejournal, 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