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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69d08aa192324c376e8a95622c7dbdad23b1d3b97c271a0dfaf23ea096c7a3ee
|
4
|
+
data.tar.gz: 8a28310be5faf089c7b2128624a186ee0d4afe4827bc8e81be26a12a6d69a2f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd1cb1d8a7e659c2e29c6d395f86f70b87dc6e4f91e47b96fc233d70c8328537baee9b310dc3f60f92700c8455afb8cc1c28558692c2b3df08f420ec360ebf8
|
7
|
+
data.tar.gz: 93ecc3a00b2a1728f0974f8bda923d9177ae7d74fe03df9af66c0dc8d2c70032c9bfaccc65083507be82486d23d347316cda948d24b8b778f56ba4744e7cba47
|
@@ -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: :
|
22
|
+
render :new, status: :unprocessable_content
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
@@ -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: :
|
85
|
+
render :new, status: :unprocessable_content
|
80
86
|
end
|
81
87
|
|
82
88
|
def identifier
|
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.
|
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:
|
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.
|
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: []
|