lato 3.22.1 → 3.22.2

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: 796d69a53a77b898ae602cfe54f33604397c9505eb623ecf84d77985b3086bf4
4
- data.tar.gz: c72842a56b5856f10a3a7be6d5cbe4bd0c8d9ddd192d4a61118ea6c77cc936b6
3
+ metadata.gz: 97c06009567898ffba7a3b34ace5ab8de7d896f19708d371839f5194589df395
4
+ data.tar.gz: 21d2297e40a0d97e46f343413114fdbebebc0bfa40b53d567cb63229a3bc5055
5
5
  SHA512:
6
- metadata.gz: 12b9391e20a74ef9ddfc9cd875bef64bc872186d57db3f8017a8f7595719f767056ca4eca8e7f249db5c7b0b4dde6946f7cf077130eebb54e19ef0987c2845dc
7
- data.tar.gz: f1bd4870565a2a65bf58ec632412c914e2137db77a4d210e07939dbb3afedfd275b4485f7c5b3608900b6fc53b40500c8e55bf86a6c1317cda88bf9b16237c09
6
+ metadata.gz: 4cc47fd5c9ec4cc561a31348e637c93ccf3f6a63203d236fa88c309008412f336e450b539428e2ea1c2d4e57b6c28f6c685bc39d77b90fac14bf04d9b125f2cf
7
+ data.tar.gz: ca60c0153ea46ea522403fab3d49e64b89297d3af97c157ccfc94cd0b94e2ab93d6343ab643387d2321f9048d8f9e3770e5fdb647f262ecaf9bba414b7443ea5
@@ -140,7 +140,10 @@ module Lato
140
140
  Rails.logger.error(e)
141
141
  end
142
142
 
143
- Lato::UserMailer.signin_success_mail(id, params[:ip_address]).deliver_later
143
+ # Send login notification email unless disabled via config
144
+ unless Lato.config.auth_disable_signin_success_mail
145
+ Lato::UserMailer.signin_success_mail(id, params[:ip_address]).deliver_later
146
+ end
144
147
 
145
148
  true
146
149
  end
data/lib/lato/config.rb CHANGED
@@ -10,7 +10,7 @@ module Lato
10
10
  attr_accessor :session_lifetime, :session_root_path
11
11
 
12
12
  # Authentication configs
13
- attr_accessor :auth_disable_signup, :auth_disable_recover_password, :auth_disable_web3, :auth_disable_authenticator, :auth_disable_webauthn
13
+ attr_accessor :auth_disable_signup, :auth_disable_recover_password, :auth_disable_web3, :auth_disable_authenticator, :auth_disable_webauthn, :auth_disable_signin_success_mail
14
14
 
15
15
  # Hcaptcha configs
16
16
  attr_accessor :hcaptcha_site_key, :hcaptcha_secret
@@ -48,7 +48,8 @@ module Lato
48
48
  @auth_disable_web3 = false
49
49
  @auth_disable_authenticator = false
50
50
  @auth_disable_webauthn = false
51
-
51
+ @auth_disable_signin_success_mail = false
52
+
52
53
  @hcaptcha_site_key = nil
53
54
  @hcaptcha_secret = nil
54
55
 
data/lib/lato/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lato
2
- VERSION = "3.22.1"
2
+ VERSION = "3.22.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lato
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.22.1
4
+ version: 3.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante