authentication-zero 2.16.2 → 2.16.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/templates/controllers/api/sessions_controller.rb.tt +3 -0
- data/lib/generators/authentication/templates/controllers/html/sessions_controller.rb.tt +3 -0
- data/lib/generators/authentication/templates/models/user.rb.tt +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a9f5862b8b603990471ab970d13cf934f73252c55a734a39a90198406066a75
|
4
|
+
data.tar.gz: d6bf9bda2ef8d19df6da9207e40e5621eb1157b2073921ff5dbee6ce00ff22a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ccdcba2c6dd5edf45b60acd1462ef02eb46bf4e4f9a9a0a7860a2e840ff18f58a1d655b2f9e7f3c45cc497aac04fc269ae86186df6cbdbfb70f46e51bc49db0
|
7
|
+
data.tar.gz: e70d3a8012378093f060dc5084089ed77c87d6cc271db810b624c588324797e7c1748bd1bc345a5d5dce2ff0f3e6cabab7ba1f20e3abc8d3e7e590c43a799844
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -18,7 +18,7 @@ The purpose of authentication zero is to generate a pre-built authentication sys
|
|
18
18
|
- Ask password before sensitive data changes, aka: sudo (--sudoable)
|
19
19
|
- Reset the user password and send reset instructions
|
20
20
|
- Reset the user password only from verified emails
|
21
|
-
- Lock
|
21
|
+
- Lock mechanism for resetting password and sign-in (--lockable)
|
22
22
|
- Send e-mail confirmation when your email has been changed
|
23
23
|
- Send e-mail notification when someone has logged into your account
|
24
24
|
- Manage multiple sessions & devices
|
@@ -29,7 +29,6 @@ class User < ApplicationRecord
|
|
29
29
|
after_update if: :password_digest_previously_changed? do
|
30
30
|
sessions.where.not(id: Current.session).destroy_all
|
31
31
|
end
|
32
|
-
|
33
32
|
<%- if options.trackable? %>
|
34
33
|
after_update if: :email_previously_changed? do
|
35
34
|
events.create! action: "email_verification_requested"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authentication-zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.16.
|
4
|
+
version: 2.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|