passwordless 1.5.0 → 1.6.0
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 +4 -4
- data/app/controllers/passwordless/sessions_controller.rb +7 -6
- data/app/models/passwordless/session.rb +2 -1
- data/app/views/passwordless/sessions/show.html.erb +1 -1
- data/config/locales/en.yml +1 -0
- data/db/migrate/20171104221735_create_passwordless_sessions.rb +1 -1
- data/lib/passwordless/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44758dfedcb5f0b737a6892abdb754751f14d4da6d0c4e7e3ae9fa41d1b544ee
|
4
|
+
data.tar.gz: 01e6534d9d3f8e11ff1f13e908c62a096fc32129a1f34df5a75defa97b7a0b31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29e04ae936111350bf9673b2fd38f88e47006b72bcdd4aac5a38595623ab93558ab03e0a62677197d21f56e5370f38cc9fa5b5cc44bd8d8bdecf43e5ee66932d
|
7
|
+
data.tar.gz: 0701f4569d5e37ca19d42eb1afe00bd4b99fb68a1e2951ff9ec419221d32fb559e012cbc80115013b94cb316b5b98c70f32e862ce448cc2985464a39f73d9e4a
|
@@ -30,19 +30,20 @@ module Passwordless
|
|
30
30
|
Passwordless.context.path_for(
|
31
31
|
@session,
|
32
32
|
id: @session.to_param,
|
33
|
-
action: "show"
|
33
|
+
action: "show",
|
34
|
+
**default_url_options
|
34
35
|
),
|
35
36
|
flash: {notice: I18n.t("passwordless.sessions.create.email_sent")}
|
36
37
|
)
|
37
38
|
else
|
38
|
-
flash
|
39
|
+
flash.alert = I18n.t("passwordless.sessions.create.error")
|
39
40
|
render(:new, status: :unprocessable_entity)
|
40
41
|
end
|
41
42
|
|
42
43
|
rescue ActiveRecord::RecordNotFound
|
43
44
|
@session = Session.new
|
44
45
|
|
45
|
-
flash
|
46
|
+
flash.alert = I18n.t("passwordless.sessions.create.not_found")
|
46
47
|
render(:new, status: :not_found)
|
47
48
|
end
|
48
49
|
|
@@ -155,15 +156,15 @@ module Passwordless
|
|
155
156
|
**redirect_to_options
|
156
157
|
)
|
157
158
|
else
|
158
|
-
flash
|
159
|
+
flash.alert = I18n.t("passwordless.sessions.errors.invalid_token")
|
159
160
|
render(status: :forbidden, action: "show")
|
160
161
|
end
|
161
162
|
|
162
163
|
rescue Errors::TokenAlreadyClaimedError
|
163
|
-
flash
|
164
|
+
flash.alert = I18n.t("passwordless.sessions.errors.token_claimed")
|
164
165
|
redirect_to(passwordless_failure_redirect_path, status: :see_other, **redirect_to_options)
|
165
166
|
rescue Errors::SessionTimedOutError
|
166
|
-
flash
|
167
|
+
flash.alert = I18n.t("passwordless.sessions.errors.session_expired")
|
167
168
|
redirect_to(passwordless_failure_redirect_path, status: :see_other, **redirect_to_options)
|
168
169
|
end
|
169
170
|
|
data/config/locales/en.yml
CHANGED
data/lib/passwordless/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passwordless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mikkel Malmberg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.5.
|
94
|
+
rubygems_version: 3.5.9
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Add authentication to your app without all the ickyness of passwords.
|