devise_xfactor_authentication 2.2.20 → 2.2.22

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: c2e0e41652b583da294f118a3a832491cabaedb746a2c4c829b7c08f144c996c
4
- data.tar.gz: d49e9d7a75151ddcd14de47c686f04c1766002af5c6c8736b467564cda8ac10e
3
+ metadata.gz: '073680ced6fcf696ed3d422bddbf264ab0469b22288dda57bbdc917ea42a5f73'
4
+ data.tar.gz: cff3ec14ca4abdbbb3c0370e6da0ca9deb226fba5b57b1d004b2655d6f181347
5
5
  SHA512:
6
- metadata.gz: 92ea75d1ec6728611935c4e648c1991605904da1e1a88903f026b8569d6d053678bd6e3a37a8e9a475b06aefa001325d86ac6a6d094cf25cc8481932a0e987b1
7
- data.tar.gz: 251983220403608b5623fcff740dbd0704cb5ccc38cf63f7fc2e86681dd1ad65fbb6200bbcacf8ba445470558672894423ed15290552f58cb8c1a2a78ba2bc2f
6
+ metadata.gz: 1f42dc4e02e9a8f150d2731ab1ecfa8303eac34e2fefa7cf99cf3a5bf243346b35088713c89d8a3e66362547135dbe4d33f697120c4c1522bf57874dd50b9a1d
7
+ data.tar.gz: e7d443fd8d81135ee4f8a672c79fc55e752118ceb52876769458e5e3c5b1099bfa0f8dfbeca9831b938e74c171622b8764cce0f6ef6127f3316e3cb3a8bdf46f
@@ -38,9 +38,12 @@ class Devise::DeviseXfactorAuthenticationController < DeviseController
38
38
  else
39
39
  sign_in(resource_name, resource, bypass: true)
40
40
  end
41
- set_flash_message!(:notice, :success)
42
- resource.update(second_factor_attempts_count: 0)
43
-
41
+ if resource.uses_two_factor?
42
+ set_flash_message!(:notice, :success)
43
+ resource.update(second_factor_attempts_count: 0)
44
+ else
45
+ set_flash_message!(:notice, :does_not_use_two_factor)
46
+ end
44
47
  redirect_to after_devise_xfactor_success_path_for(resource)
45
48
  end
46
49
 
@@ -3,6 +3,7 @@ de:
3
3
  devise_xfactor_authentication:
4
4
  success: "Ihre Zwei-Faktor-Authentifizierung war erfolgreich."
5
5
  attempt_failed: "Authentifizierungsversuch fehlgeschlagen."
6
+ does_not_use_two_factor: "Erfolgreich angemeldet."
6
7
  max_login_attempts_reached: "Ihr Zugang wurde ganz verweigert, da Sie Ihr Versuchslimit erreicht haben."
7
8
  contact_administrator: "Kontaktieren Sie bitte einen Ihrer Administratoren."
8
9
  code_has_been_sent: "Ihr Einmal-Passwort wurde verschickt."
@@ -3,6 +3,7 @@ en:
3
3
  devise_xfactor_authentication:
4
4
  success: "Two factor authentication successful."
5
5
  attempt_failed: "Attempt failed."
6
+ does_not_use_two_factor: "Signed in successfully."
6
7
  max_login_attempts_reached: "Access completely denied as you have reached your attempts limit"
7
8
  contact_administrator: "Please contact your system administrator."
8
9
  code_has_been_sent: "Your authentication code has been sent."
@@ -3,6 +3,7 @@ es:
3
3
  devise_xfactor_authentication:
4
4
  success: "Autenticación multi-factor realizada exitosamente."
5
5
  attempt_failed: "La autenticación ha fallado."
6
+ does_not_use_two_factor: "Iniciado sesión con éxito."
6
7
  max_login_attempts_reached: "Has llegado al límite de intentos fallidos, acceso denegado."
7
8
  contact_administrator: "Contacte a su administrador de sistema."
8
9
  code_has_been_sent: "El código de autenticación ha sido enviado."
@@ -3,6 +3,7 @@ fr:
3
3
  devise_xfactor_authentication:
4
4
  success: "Validation en deux étapes effectuée avec succès."
5
5
  attempt_failed: "La connexion a échoué."
6
+ does_not_use_two_factor: "Connexion réussie."
6
7
  max_login_attempts_reached: "Limite de tentatives atteinte, accès refusé."
7
8
  contact_administrator: "Merci de contacter votre administrateur système."
8
9
  code_has_been_sent: "Votre code de validation envoyé."
@@ -3,6 +3,7 @@ ru:
3
3
  devise_xfactor_authentication:
4
4
  success: "Двухфакторная авторизация успешно пройдена."
5
5
  attempt_failed: "Неверный код."
6
+ does_not_use_two_factor: "Выполнен вход."
6
7
  max_login_attempts_reached: "Доступ заблокирован. Превышено число попыток авторизации"
7
8
  contact_administrator: "Пожалуйста, свяжитесь с системным администратором."
8
9
  code_has_been_sent: "Ваш персональный код был отправлен."
@@ -1,3 +1,3 @@
1
1
  module DeviseXfactorAuthentication
2
- VERSION = "2.2.20".freeze
2
+ VERSION = "2.2.22".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_xfactor_authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.20
4
+ version: 2.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathon Pickett
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-16 00:00:00.000000000 Z
11
+ date: 2022-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails