authentication-zero 2.16.9 → 2.16.10

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: d695ca0e7c4d270b6fe07929260341edf25e6e8ac1ab451d9de956795cdf92f0
4
- data.tar.gz: ac4c926f168b43c8daeebb676d7d7f00be6667c1b5627f5a7b91c1038a7d9e22
3
+ metadata.gz: 65348917c3c30813d335ddaa0ded556499189389735612c8c004a44c6fb7ab5c
4
+ data.tar.gz: dcfff79d0c2ad9098d450923dab94ea849f122c1e31991ce602dec0796d70527
5
5
  SHA512:
6
- metadata.gz: 7d3421d5fb49b0b9dda2154ea9d0cbf7a36b25e3a2e5afaa8ec46b9ea17da532248e2d518104a934f68a13c08df175c0e2f09d22ab66c9b58072b29f4de7624e
7
- data.tar.gz: da27bacca31013b8f8a0d30f25f135f6848abbbf30f077fd3b3ead2a5110ad48e7445c6154a7b9fb6dc5245c3713df7db9e9141ffaf69c82da4cb1eafa47d941
6
+ metadata.gz: ba5886da3c24e24eff75f138f38846c1a3867075dbbc1199cbe89c73eb26db21b6286bc705129ee9c6925a00b768fe5d9a09e2cc814b2de733caccdfde7ce963
7
+ data.tar.gz: 5287419cf37c6ee2251414ccf57a544316aea3db54ba06df630f12893c5539154c1a33c5a283a859309050114b39e349dba4e6f367c83b64aa17991ef7a6425c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (2.16.9)
4
+ authentication-zero (2.16.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "2.16.9"
2
+ VERSION = "2.16.10"
3
3
  end
@@ -8,12 +8,12 @@ class TwoFactorAuthentication::TotpsController < ApplicationController
8
8
 
9
9
  def create
10
10
  if !@user.authenticate(params[:current_password])
11
- redirect_to two_factor_authentication_totp_path, alert: "The password you entered is incorrect"
11
+ redirect_to new_two_factor_authentication_totp_path, alert: "The password you entered is incorrect"
12
12
  elsif @totp.verify(params[:code], drift_behind: 15)
13
13
  @user.update! otp_secret: params[:secret]
14
14
  redirect_to root_path, notice: "2FA is enabled on your account"
15
15
  else
16
- redirect_to two_factor_authentication_totp_path, alert: "That code didn't work. Please try again"
16
+ redirect_to new_two_factor_authentication_totp_path, alert: "That code didn't work. Please try again"
17
17
  end
18
18
  end
19
19
 
@@ -28,6 +28,6 @@
28
28
  </div>
29
29
 
30
30
  <div>
31
- <%%= form.submit "Verify and active" %>
31
+ <%%= form.submit "Verify and activate" %>
32
32
  </div>
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.9
4
+ version: 2.16.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-03 00:00:00.000000000 Z
11
+ date: 2023-03-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: