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 +4 -4
- data/app/models/lato/user.rb +4 -1
- data/lib/lato/config.rb +3 -2
- data/lib/lato/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: 97c06009567898ffba7a3b34ace5ab8de7d896f19708d371839f5194589df395
|
|
4
|
+
data.tar.gz: 21d2297e40a0d97e46f343413114fdbebebc0bfa40b53d567cb63229a3bc5055
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4cc47fd5c9ec4cc561a31348e637c93ccf3f6a63203d236fa88c309008412f336e450b539428e2ea1c2d4e57b6c28f6c685bc39d77b90fac14bf04d9b125f2cf
|
|
7
|
+
data.tar.gz: ca60c0153ea46ea522403fab3d49e64b89297d3af97c157ccfc94cd0b94e2ab93d6343ab643387d2321f9048d8f9e3770e5fdb647f262ecaf9bba414b7443ea5
|
data/app/models/lato/user.rb
CHANGED
|
@@ -140,7 +140,10 @@ module Lato
|
|
|
140
140
|
Rails.logger.error(e)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
|
-
|
|
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