bullet_train-integrations 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12f03b38b792f18b9d688f4f288a5b5d63f29caac7677df5bcaa7f0df83c33e3
|
4
|
+
data.tar.gz: e2723181da570767a48de3319b7a0e8aa736c6abde0ed5ae86f2466d6fa07d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 153cc8fa78654867ac52c43c90d3c40bd5a969582459335b4add0289d1aeb2e225496339196eab4b7c036662dafa56f186f7f8632157b1a9a894322aee15928b
|
7
|
+
data.tar.gz: 153d56530998a567098037e2b859e0fae00162e85efc3ef2834c73d59eae69f96012023c4815772663cf949fff656390cda67100c9d49e017d820ab4f3db96f3
|
data/MIT-LICENSE
CHANGED
@@ -84,7 +84,7 @@ module Account::Oauth::OmniauthCallbacks::ControllerBase
|
|
84
84
|
# if the account is already connected to a user, we can't connect it again.
|
85
85
|
# this would potentially lock someone else out of their account.
|
86
86
|
if oauth_account.user
|
87
|
-
message_key = oauth_account.user == current_user ? "omniauth.user.reconnected" : "omniauth.user.already_registered"
|
87
|
+
message_key = (oauth_account.user == current_user) ? "omniauth.user.reconnected" : "omniauth.user.already_registered"
|
88
88
|
redirect_to edit_account_user_path(current_user), notice: t(message_key, provider: t(auth.provider))
|
89
89
|
else
|
90
90
|
oauth_account.update(user: current_user)
|
@@ -109,7 +109,7 @@ module Account::Oauth::OmniauthCallbacks::ControllerBase
|
|
109
109
|
# however, this is secure because even if someone controlled `bullettrain.co`,
|
110
110
|
# they would never be able to guess the hex code to reset the password.
|
111
111
|
# even that is a rare edge case, because we force people to update this in onboarding.
|
112
|
-
email = auth.info.email.present? ? auth.info.email : "noreply
|
112
|
+
email = auth.info.email.present? ? auth.info.email : "noreply@#{SecureRandom.hex}.example.com"
|
113
113
|
|
114
114
|
# if the user already exists with the email address on the account ..
|
115
115
|
if User.find_by(email: email)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-integrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubygems_version: 3.
|
65
|
+
rubygems_version: 3.3.7
|
66
66
|
signing_key:
|
67
67
|
specification_version: 4
|
68
68
|
summary: Bullet Train Integrations
|