devise_sms_confirmable 0.1.20 → 0.1.21
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c9b1b6aef5ee7fba9976ad18f1ab390b14f7028645a744125fdbc51e0880ecf0
|
|
4
|
+
data.tar.gz: 3ae010331a42bfe37a8b4780bf4c254104ba4204e9df48562fd5c80d7a1590e6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7cf7ee4aa615ba70651f7c988061dfa81d659ffc922110450d130df28166e1e027058135b7a9b26ee58ced97cf62d86bb7d3a99b7735386ccad1b061393e486b
|
|
7
|
+
data.tar.gz: 3585582f3148215b494ec276432bf2b5380878fda5ea819689117f7bea260745da867104da3278247e98cf0d0b89b4a60a337e758e4ace9056658a970f21eaad
|
data/Gemfile.lock
CHANGED
|
@@ -221,7 +221,7 @@ module Devise
|
|
|
221
221
|
confirmable
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
-
def sms_confirm_by_token(sms_confirmation_token)
|
|
224
|
+
def sms_confirm_by_token(sms_confirmation_token, context: nil)
|
|
225
225
|
confirmable = find_first_by_auth_conditions(sms_confirmation_token: sms_confirmation_token)
|
|
226
226
|
unless confirmable
|
|
227
227
|
confirmation_digest = Devise.token_generator.digest(self, :sms_confirmation_token, sms_confirmation_token)
|
|
@@ -232,7 +232,7 @@ module Devise
|
|
|
232
232
|
# confirmable = find_or_initialize_with_error_by(:sms_confirmation_token, sms_confirmation_token)
|
|
233
233
|
# after enough time has passed that Devise clients do not use digested tokens
|
|
234
234
|
|
|
235
|
-
confirmable.sms_confirm if confirmable.persisted?
|
|
235
|
+
confirmable.sms_confirm(context: context) if confirmable.persisted?
|
|
236
236
|
confirmable
|
|
237
237
|
end
|
|
238
238
|
|