bullet_train-integrations 1.2.10 → 1.2.11
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68a541815a66e8a52625c98f1a76733ca9d2c064c4f3ca857d49226927e109a0
|
|
4
|
+
data.tar.gz: 602abf81e7410155c835044fb9003c1c11c54f6daed40259ba23953883dae14b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3615749e03b544c3d1112acc7dcf3657a5f30f49305d8f47ef5eb0d0d47238e7429843a6c0c0c3d03081e15d9483f921fdc4c479728628f2ff019d7a62737343
|
|
7
|
+
data.tar.gz: f877dde5515be9a1ad7b9c5a0eacf506a496739ea7964cc4114a5a6927d798318953a24ad08ed606fd416ee8ba3e7181c3ca90c51b86b6b38fbe2d721fd0991a
|
|
@@ -149,4 +149,22 @@ module Account::Oauth::OmniauthCallbacks::ControllerBase
|
|
|
149
149
|
redirect_to new_user_session_path, notice: t("omniauth.user.account_not_found", provider: t(auth.provider))
|
|
150
150
|
end
|
|
151
151
|
end
|
|
152
|
+
|
|
153
|
+
private
|
|
154
|
+
|
|
155
|
+
def handle_outstanding_invitation
|
|
156
|
+
# was this user registering to claim an invitation?
|
|
157
|
+
if session[:invitation_uuid].present?
|
|
158
|
+
|
|
159
|
+
# try to find the invitation, if it still exists.
|
|
160
|
+
invitation = Invitation.find_by_uuid(session[:invitation_uuid])
|
|
161
|
+
|
|
162
|
+
# if the invitation was found, claim it for this user.
|
|
163
|
+
invitation&.accept_for(current_user)
|
|
164
|
+
|
|
165
|
+
# remove the uuid from the session.
|
|
166
|
+
session.delete(:invitation_uuid)
|
|
167
|
+
|
|
168
|
+
end
|
|
169
|
+
end
|
|
152
170
|
end
|
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.2.
|
|
4
|
+
version: 1.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Culver
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|