dlnk_auth 0.1.0 → 0.2.1

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: c0d19743950394185b34f027606b621b9ed289ec80d37ff3086ad761c8869f3c
4
- data.tar.gz: d3913fffd2763cc6aa0b79ce9a324d3433214a14541503317c99eb01052002ad
3
+ metadata.gz: 563ed28cadcd52124c89750a12013d6d46a51450e74dc51563c00baf057db527
4
+ data.tar.gz: 2b0087acab9ce383bd14b0efae4b73718182d58114610f662dc09c0d874e63af
5
5
  SHA512:
6
- metadata.gz: 11bdc33693539a8b731ee7d1969178003e0ca63caf6cf04e6c837e1ff50a6b68e56bbf9fe6cd2c89f255ab605dd4439ab073975a6845a4209da567a5f3802a1c
7
- data.tar.gz: 7659d49342261e67ca7074dfbbc19fc5344fe3f24874c0a86bcbcd36bf42517c91c2da3368e08aabefe0a457538dfac70dd0af663198ec78bde0686c58b706bc
6
+ metadata.gz: 7a9f3750da38ff8ec01d37535df0bcebcd7a917127a6894dbb11680b42688d26c88ffe6afba5c81831dcfb423cc504d1dfef26fa9da81a140ccac9d4dfca20d8
7
+ data.tar.gz: b2ab46592dfe4197b1827658e76eac47a9cf6732d25c0c746336b540b3ff7d62da262f38f0171d126b4c32ae92de8413557654b6eda2f0b74996dd42bcc932c8
@@ -1,15 +1,15 @@
1
1
  en:
2
2
  dlnk_auth:
3
3
  sessions:
4
- rate_limited: "Too many requests. Try again later."
5
4
  signed_out: "You have been signed out."
5
+ rate_limited: "Too many requests. Try again later."
6
6
  magic_links:
7
- rate_limited: "Too many attempts. Try again later."
7
+ code_sent: "If this email address is registered, you will receive a sign-in code shortly."
8
+ signed_in: "Signed in successfully."
8
9
  invalid_code: "Invalid or expired code. Please try again."
9
10
  email_first: "Please enter your email first."
10
11
  email_mismatch: "Email mismatch. Please try again."
11
- signed_in: "Signed in successfully."
12
- code_sent: "If this email address is registered, you will receive a sign-in code shortly."
12
+ rate_limited: "Too many attempts. Try again later."
13
13
  mailer:
14
14
  sign_in_instructions:
15
15
  subject: "Your sign in code"
@@ -0,0 +1,15 @@
1
+ fr:
2
+ dlnk_auth:
3
+ sessions:
4
+ signed_out: "Vous etes deconnecte."
5
+ rate_limited: "Trop de tentatives. Reessayez dans quelques minutes."
6
+ magic_links:
7
+ code_sent: "Si cette adresse email est enregistree, vous recevrez un code de connexion."
8
+ signed_in: "Vous etes connecte."
9
+ invalid_code: "Code invalide ou expire."
10
+ email_first: "Veuillez d'abord entrer votre email."
11
+ email_mismatch: "L'email ne correspond pas. Veuillez reessayer."
12
+ rate_limited: "Trop de tentatives. Reessayez dans quelques minutes."
13
+ mailer:
14
+ sign_in_instructions:
15
+ subject: "Votre code de connexion"
@@ -5,7 +5,7 @@ module DlnkAuth
5
5
  attr_accessor :user_class, :email_attribute, :code_length,
6
6
  :magic_link_ttl, :session_ttl,
7
7
  :after_sign_in_path, :after_sign_out_path,
8
- :mailer_sender,
8
+ :mailer_sender, :layout,
9
9
  :rate_limit_sessions, :rate_limit_codes
10
10
 
11
11
  attr_reader :impersonation, :tenanting
@@ -14,6 +14,14 @@ module DlnkAuth
14
14
  DlnkAuth.configuration.validate!
15
15
  end
16
16
 
17
+ initializer "dlnk_auth.layout", after: :load_config_initializers do
18
+ config.to_prepare do
19
+ if DlnkAuth.configuration.layout
20
+ DlnkAuth::ApplicationController.layout DlnkAuth.configuration.layout
21
+ end
22
+ end
23
+ end
24
+
17
25
  initializer "dlnk_auth.i18n" do
18
26
  DlnkAuth::Engine.root.glob("config/locales/**/*.yml").each do |locale|
19
27
  I18n.load_path << locale unless I18n.load_path.include?(locale)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DlnkAuth
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dlnk_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DALiNK
@@ -55,6 +55,7 @@ files:
55
55
  - app/views/layouts/dlnk_auth/application.html.erb
56
56
  - app/views/layouts/mailer.html.erb
57
57
  - config/locales/en.yml
58
+ - config/locales/fr.yml
58
59
  - config/routes.rb
59
60
  - db/migrate/20260215000001_create_dlnk_auth_sessions.rb
60
61
  - db/migrate/20260215000002_create_dlnk_auth_magic_links.rb