minimalist_authentication 3.2.2 → 3.2.3

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: c1755b9e403888ec8c63f8e41fd9a1286a45a983a7860e2e929bae4b8f2743cf
4
- data.tar.gz: b8463c45d6240b16fff848d553050c14c8d3c3ddc3a2d6520e67860a1b59bf5d
3
+ metadata.gz: 69d08aa192324c376e8a95622c7dbdad23b1d3b97c271a0dfaf23ea096c7a3ee
4
+ data.tar.gz: 8a28310be5faf089c7b2128624a186ee0d4afe4827bc8e81be26a12a6d69a2f6
5
5
  SHA512:
6
- metadata.gz: 6cffe51b8c6d48b71241e390fa79c46ec45fba7ee4cca744c079f6f6db0be88f5311424f0f615d183b6aec9bb685e25a5c2135360bec5e19d35cc23374dda27a
7
- data.tar.gz: 10a06e82b2fdb2a22f59842221959408b49b43d7df801560d741179884beb192bde9c6d78e7972ecf30b2ee5f8ea603235d2f561c8913d2646ffc1e0fc0a3355
6
+ metadata.gz: 5fd1cb1d8a7e659c2e29c6d395f86f70b87dc6e4f91e47b96fc233d70c8328537baee9b310dc3f60f92700c8455afb8cc1c28558692c2b3df08f420ec360ebf8
7
+ data.tar.gz: 93ecc3a00b2a1728f0974f8bda923d9177ae7d74fe03df9af66c0dc8d2c70032c9bfaccc65083507be82486d23d347316cda948d24b8b778f56ba4744e7cba47
@@ -7,7 +7,7 @@ class EmailsController < ApplicationController
7
7
  if current_user.update(user_params)
8
8
  redirect_to update_redirect_path, notice: t(".notice")
9
9
  else
10
- render :edit, status: :unprocessable_entity
10
+ render :edit, status: :unprocessable_content
11
11
  end
12
12
  end
13
13
 
@@ -19,7 +19,7 @@ class PasswordResetsController < ApplicationController
19
19
  redirect_to new_session_path, notice: t(".notice", email:)
20
20
  else
21
21
  flash.now.alert = t(".alert")
22
- render :new, status: :unprocessable_entity
22
+ render :new, status: :unprocessable_content
23
23
  end
24
24
  end
25
25
 
@@ -17,7 +17,7 @@ class PasswordsController < ApplicationController
17
17
  if user.update(password_params)
18
18
  redirect_to new_session_path, notice: t(".notice")
19
19
  else
20
- render :edit, status: :unprocessable_entity
20
+ render :edit, status: :unprocessable_content
21
21
  end
22
22
  end
23
23
 
@@ -27,11 +27,17 @@ module MinimalistAuthentication
27
27
 
28
28
  def destroy
29
29
  reset_session
30
+ clear_site_data
30
31
  redirect_to logout_redirect_to, notice: t(".notice"), status: :see_other
31
32
  end
32
33
 
33
34
  private
34
35
 
36
+ # Sets a “Clear-Site-Data” header to clear the browser cache.
37
+ def clear_site_data
38
+ response.headers["Clear-Site-Data"] = '"cache","storage"'
39
+ end
40
+
35
41
  def user
36
42
  @user ||= MinimalistAuthentication.configuration.user_model.new
37
43
  end
@@ -76,7 +82,7 @@ module MinimalistAuthentication
76
82
  def after_authentication_failure
77
83
  flash.now.alert = t(".alert", identifier:)
78
84
  user
79
- render :new, status: :unprocessable_entity
85
+ render :new, status: :unprocessable_content
80
86
  end
81
87
 
82
88
  def identifier
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinimalistAuthentication
4
- VERSION = "3.2.2"
4
+ VERSION = "3.2.3"
5
5
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimalist_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.2
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Baldwin
8
8
  - Brightways Learning
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-12-02 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bcrypt
@@ -97,7 +96,6 @@ licenses:
97
96
  metadata:
98
97
  homepage_uri: https://github.com/wwidea/minimalist_authentication
99
98
  rubygems_mfa_required: 'true'
100
- post_install_message:
101
99
  rdoc_options: []
102
100
  require_paths:
103
101
  - lib
@@ -112,8 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
110
  - !ruby/object:Gem::Version
113
111
  version: '0'
114
112
  requirements: []
115
- rubygems_version: 3.5.11
116
- signing_key:
113
+ rubygems_version: 3.6.9
117
114
  specification_version: 4
118
115
  summary: A Rails authentication plugin that takes a minimalist approach.
119
116
  test_files: []