lato 3.22.0 → 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/README.md +1 -0
- data/app/assets/javascripts/lato/controllers/lato_tooltip_controller.js +4 -0
- 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/README.md
CHANGED
|
@@ -34,6 +34,7 @@ The idea behind Lato is to create an eco-system of engines that can improve the
|
|
|
34
34
|
- [Lato Settings](https://github.com/Lato-org/lato_settings): manage application settings from the UI panel;
|
|
35
35
|
- [Lato Storage](https://github.com/Lato-org/lato_storage): manage storage (Active Storage data) from the UI panel;
|
|
36
36
|
- [Lato Users](https://github.com/Lato-org/lato_users): manage users from the UI panel;
|
|
37
|
+
- [Lato CMS](https://github.com/Lato-org/lato_cms): manage web pages from the UI panel;
|
|
37
38
|
|
|
38
39
|
## Installation
|
|
39
40
|
Add required dependencies to your application's Gemfile:
|
|
@@ -8,6 +8,10 @@ export default class extends Controller {
|
|
|
8
8
|
connect() {
|
|
9
9
|
this.tooltip = new bootstrap.Tooltip(this.element)
|
|
10
10
|
|
|
11
|
+
// Always close the tooltip when its trigger element is clicked, since the
|
|
12
|
+
// click may move the element and leave the tooltip stuck in the old position
|
|
13
|
+
this.element.addEventListener('click', () => this.tooltip.hide())
|
|
14
|
+
|
|
11
15
|
// HACK: Force tooltip to be closed when a boostrap modal is opened/closed
|
|
12
16
|
const modals = document.querySelectorAll('.modal')
|
|
13
17
|
modals.forEach((modal) => {
|
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