revise_auth-jets 0.2.8 → 0.2.9

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: fc3cb1f86e5421ef2a9a33e44be8146d39e7feb87d99e201bff9c931fc9825bb
4
- data.tar.gz: 76b7381d90d96ecda69a3cbd8df4414057d0507620b973f585008a44756d9e46
3
+ metadata.gz: e48e02003acd849df39aeaff4dd064bea52e22fc73934a26187dcfd101e5b757
4
+ data.tar.gz: 323f662581f6c06ab48955979394dc46a6e854a51e327a11097448f74ef66e92
5
5
  SHA512:
6
- metadata.gz: af86788f07d44d5ddb7b51791f47008f3e0cf20f9a51ce72920ec5d45923f2db02cc206e8c531e7663178304fa532c8507a449d7b910315c47ee974d4bca221f
7
- data.tar.gz: fefb9583b4a2feb8c93e8335b031c612adc379e9e70a55c906068b3b39684964ec4954ecc8d950477cc2c220dbc3b4f6e51f62839bcc285a0df3d30eb84067ac
6
+ metadata.gz: 923e6b3260121421e3d9c0db4fe693ed5aa85e03dadfe4d0ba8602bdf3956211331159caea7b73e099ec6db4b5950fad6612f1c161abee7c6607cda152a73538
7
+ data.tar.gz: bc6c0e639d25510b33500622a35165316a6e1e51646d31535a6ab445227b903aa05cc74eda4fd94502247cb5d3a6480afd8bb9e39996f34d0486afc625ddad3a
@@ -3,7 +3,7 @@ class ReviseAuth::EmailController < ReviseAuthController
3
3
 
4
4
  # GET /profile/email?confirmation_token=abcdef
5
5
  def show
6
- if User.find_signed(params[:confirmation_token], purpose: :email_verification)&.confirm_email_change
6
+ if User.find_by(confirmation_token: params[:confirmation_token])&.confirm_email_change
7
7
  #flash[:notice] = I18n.t("revise_auth.email_confirmed")
8
8
  redirect_to(user_signed_in? ? profile_path : root_path)
9
9
  else
@@ -26,9 +26,8 @@ module ReviseAuth
26
26
 
27
27
  # Generates a confirmation token and send email to the user
28
28
  def send_confirmation_instructions
29
- token = generate_token_for
30
29
  # = breaks the query params
31
- token.gsub("=", '')
30
+ token = generate_token_for.gsub("=", '')
32
31
  self.confirmation_token = token
33
32
  self.save!
34
33
  ReviseAuth::Mailer.with(user: self.unconfirmed_email, token: token).confirm_email.deliver_later
@@ -1,3 +1,3 @@
1
1
  module ReviseAuth
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: revise_auth-jets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremiah Parrack