[ljcom] r9572: LJSUP-7012: prevent verification of the ...
Committer: dpetrov
LJSUP-7012: prevent verification of the same number from different accountsU trunk/htdocs/js/editprofile.js U trunk/htdocs/manage/profile/index.bml.text.local
Modified: trunk/htdocs/js/editprofile.js
===================================================================
--- trunk/htdocs/js/editprofile.js 2010-10-01 04:10:06 UTC (rev 9571)
+++ trunk/htdocs/js/editprofile.js 2010-10-01 06:53:02 UTC (rev 9572)
@@ -140,6 +140,7 @@
that.checkVerification();
break;
case 'rate_limit_exceded': that.setState('totallimitexceeded', 'error', 'rateexceed'); break;
+ case 'already_use': that.setState('already_use', 'success', 'already_use'); break;
}
});
},
@@ -173,6 +174,7 @@
{
case 'rate_limit_exceded': this.setState('totallimitexceeded', 'error', 'rateexceed'); break;
case 'verification_sms_sended': this.setState('smssent', 'success', 'smssent'); break;
+ case 'already_use': this.setState('already_use', 'success', 'already_use'); break;
case 'wrong_rcpt_number': this.setState('notasubscriber', 'error'); break;
case 'verified': this.setState('verified', 'info', 'verified'); break;
case 'verification_outdated': this.setState('linkexpired', 'error'); break;
Modified: trunk/htdocs/manage/profile/index.bml.text.local
===================================================================
--- trunk/htdocs/manage/profile/index.bml.text.local 2010-10-01 04:10:06 UTC (rev 9571)
+++ trunk/htdocs/manage/profile/index.bml.text.local 2010-10-01 06:53:02 UTC (rev 9572)
@@ -43,6 +43,8 @@
.section.textmsg.info.unsupporteddef=Your provider is not supported. Only Megafon and Beeline are
+.section.textmsg.info.already_use=This number is already used by another account
+
.section.textmsg.info.correctnum=Correct number
.section.textmsg.info.requestsent=Request has been sent
