bullet_train-integrations 1.0.0 → 1.2.1
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: 631a455684a05ebb6a440334329b6225a776798209d4b10c060dd59562ab30b5
|
4
|
+
data.tar.gz: 774dc61b85f11a5772fba77344fa94851b86d33e3b50a542109a3ffa50def487
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f1cef55ac235b0efeda70c3ca33a10e16f3647cc3a356096e2ffef3c1fe83c854e6d8f41f10e17668a48af48510c36522458ce873e040ab4218728b3439835b
|
7
|
+
data.tar.gz: 780ca06138ca794db0702c285530f35313135d4a2ecda44432fbed80fd75e3678bfc281bd345a9cffcc57cfe9498c196faf7c711da76354a8123bd81f32a0bc9
|
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.1
|
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
|