rails_simple_auth 1.2.1 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92f4718f32ac9f010bc24be665915952c9dcf5d02340c07e7692b2a053a282ce
4
- data.tar.gz: 71ba9817ebe4fcefd815aa47e0f99d02261349d78a0532b0a6f3fca22442d6ab
3
+ metadata.gz: f04047a219e2fecb1276e8842b8fe9c83d70a20d0aea65d0803e1d626317a88f
4
+ data.tar.gz: b9b58f955cf0f5ccab48bf287fdabfb10cb157df88b684a76b4e6b19011466c3
5
5
  SHA512:
6
- metadata.gz: 97e9c562f6993c03661ef81eee4e534ad25496b3f36f3f46d1b559a860835a8dde49f190eeed0368a5abc7d0d06e11d2a596873d75af7484983f3afe043397d5
7
- data.tar.gz: cf069335a5b94f84b163057116730d1feb4d428d43b9c3ccb5da056f73b92a13ef2dbeda7cf8c939c858480243bcf93e47ec7899f63c12864398d21d4fcd43c3
6
+ metadata.gz: fa49cd538f6d40890f650250e11152f1a4dbbd1611f2df1ffafc8cefd64fcb23dcd60f1f99b32b08faa1a369d4268bd7fc8a22f3e304c2579348c858a8a48a13
7
+ data.tar.gz: b8b3bc5271ae2fdb41c190319e5bde180ee201d299400ecd3921084594471e275416ffa696102c31870ae9f9ad8488742f841c04aecaec1f18adf19dbc1146fa
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.2] - 2026-09-15
11
+
12
+ ### Fixed
13
+
14
+ - Redirect password-authenticated users with unconfirmed emails to the confirmation form and prefill their email. Keep them signed out until confirmation; opening the form does not automatically resend email.
15
+
10
16
  ## [1.2.1] - 2026-09-15
11
17
 
12
18
  ### Fixed
@@ -32,9 +32,8 @@ module RailsSimpleAuth
32
32
 
33
33
  if user.authenticate(params[:password]) && user.persisted?
34
34
  if confirmation_required_for?(user)
35
- @error_message = 'Please confirm your email before signing in.'
36
- @previous_email = params[:email]
37
- render :new, status: :unprocessable_content
35
+ session[:confirmation_email] = user.email
36
+ redirect_to new_confirmation_path
38
37
  else
39
38
  sign_in_and_redirect(user)
40
39
  end
@@ -10,6 +10,7 @@
10
10
  <div class="rsa-auth-form__group">
11
11
  <%= form.label :email, "Email", class: "rsa-auth-form__label" %>
12
12
  <%= form.email_field :email,
13
+ value: session[:confirmation_email],
13
14
  class: "rsa-auth-form__input",
14
15
  required: true,
15
16
  autofocus: true %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsSimpleAuth
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_simple_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kuznetsov