firstmiler_sms_oauth 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,12 +13,13 @@ module FirstmilerSmsOauth
|
|
13
13
|
|
14
14
|
module InstanceMethods
|
15
15
|
def send_otp
|
16
|
-
content = sms_content
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
16
|
+
p content = sms_content
|
17
|
+
begin
|
18
|
+
FirstmilerSmsOauth::FmSms.send_otp(self.phone_no, content)
|
19
|
+
rescue Exception => e
|
20
|
+
delete_user_sms_oauth_tokens
|
21
|
+
p e.to_s
|
22
|
+
end
|
22
23
|
end
|
23
24
|
|
24
25
|
def delete_user_sms_oauth_tokens
|