authentication-zero 2.16.12 → 2.16.13
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/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/authentication_zero/version.rb +1 -1
- data/lib/generators/authentication/templates/controllers/html/invitations_controller.rb.tt +1 -1
- data/lib/generators/authentication/templates/controllers/html/sessions/omniauth_controller.rb.tt +5 -5
- 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: fd4aba188e6a8763ada4f0cc90f370e8980afd0903e3e5f17a5f4bcc5db7c8d6
|
4
|
+
data.tar.gz: 8e16e20f5ed9d2cf1aadd469bdeffae20e1c51ab030bb5731697ae37dd749079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc0688a6b1fae46b456d7c7ce473f1a4414f13bf9bc29439c6d687a67e9122d58eb76e592ef2796c79f1b0e19816e66e6a92f7278dc9df31c9595382108016ce
|
7
|
+
data.tar.gz: 06d51e04679f0821a4cb296f2e06f588c0614b75ae1f8ca6ce370cbca494d950280b617e8f6346539ddbe8d412838c9fdb9fceb4b6315d47b3471e30b9b7cd19
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/generators/authentication/templates/controllers/html/sessions/omniauth_controller.rb.tt
CHANGED
@@ -3,7 +3,7 @@ class Sessions::OmniauthController < ApplicationController
|
|
3
3
|
skip_before_action :authenticate
|
4
4
|
|
5
5
|
def create
|
6
|
-
@user = User.
|
6
|
+
@user = User.create_with(user_params).find_or_initialize_by(omniauth_params)
|
7
7
|
|
8
8
|
if @user.save
|
9
9
|
session = @user.sessions.create!
|
@@ -20,14 +20,14 @@ class Sessions::OmniauthController < ApplicationController
|
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
23
|
-
def omniauth_params
|
24
|
-
{ provider: omniauth.provider, uid: omniauth.uid }
|
25
|
-
end
|
26
|
-
|
27
23
|
def user_params
|
28
24
|
{ email: omniauth.info.email, password: SecureRandom::base58, verified: true }
|
29
25
|
end
|
30
26
|
|
27
|
+
def omniauth_params
|
28
|
+
{ provider: omniauth.provider, uid: omniauth.uid }
|
29
|
+
end
|
30
|
+
|
31
31
|
def omniauth
|
32
32
|
request.env["omniauth.auth"]
|
33
33
|
end
|
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|