bullet_train 1.0.39 → 1.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/sessions/controller_base.rb +11 -7
- data/lib/bullet_train/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d8dd0b6a816a73fcf98800e8416fadbbe71bf5836657a1b4344a8cf85d9f4cb
|
4
|
+
data.tar.gz: 2a92723e1cf1bdf01be90564f85dd45d0168a6ef834c2b244c98bd74b62b7e4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7365104ebdbd0382bb2e040342c6ee83848c60fce20c4be6a1ababf0514e1f482ffe8c9fa5f07e717321b02051d434da754ef54b2d69258694a5545be4d60e43
|
7
|
+
data.tar.gz: b0e7f1cc4aa3230e8a626700ef856806e45d9e09c003be4ad642a4dd132fe1499d92c5cde8eaca8a2b31f75045a056cbfaa16e5023370ceb42240a9e0f606868
|
@@ -2,14 +2,18 @@ module Sessions::ControllerBase
|
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
4
|
included do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
# TODO I'm not sure why the sign-in page started throwing a `ActionController::InvalidAuthenticityToken`. I'm doing
|
6
|
+
# this as a temporary workaround, but this shouldn't be here long-term.
|
7
|
+
skip_before_action :verify_authenticity_token, only: [:create]
|
8
|
+
end
|
9
|
+
|
10
|
+
def pre_otp
|
11
|
+
if (@email = params["user"]["email"].downcase.strip.presence)
|
12
|
+
@user = User.find_by(email: @email)
|
13
|
+
end
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
end
|
15
|
+
respond_to do |format|
|
16
|
+
format.js
|
13
17
|
end
|
14
18
|
end
|
15
19
|
end
|
data/lib/bullet_train/version.rb
CHANGED