firstmiler_sms_oauth 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,11 +14,11 @@ module FirstmilerSmsOauth
|
|
14
14
|
module InstanceMethods
|
15
15
|
def send_otp
|
16
16
|
content = sms_content
|
17
|
-
begin
|
18
|
-
|
19
|
-
rescue Exception => e
|
20
|
-
|
21
|
-
end
|
17
|
+
# begin
|
18
|
+
FirstmilerSmsOauth::FmSms.send_otp(self.phone_no, content)
|
19
|
+
# rescue Exception => e
|
20
|
+
# delete_user_sms_oauth_tokens
|
21
|
+
# end
|
22
22
|
end
|
23
23
|
|
24
24
|
def delete_user_sms_oauth_tokens
|
@@ -41,7 +41,7 @@ module FirstmilerSmsOauth
|
|
41
41
|
key
|
42
42
|
end
|
43
43
|
|
44
|
-
def
|
44
|
+
def varify_otp?(token)
|
45
45
|
flag = all_tokens.include?(token.to_s)
|
46
46
|
delete_user_sms_oauth_tokens
|
47
47
|
flag
|