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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 925e5dd4e3c5460a38172e5f67acaf5130c15e080777a91330becf009888dd52
4
- data.tar.gz: 672b343b2de9def169bc3a97314b4ccee9db6f3254f89fb42f3e5c3ae17de863
3
+ metadata.gz: 97c06009567898ffba7a3b34ace5ab8de7d896f19708d371839f5194589df395
4
+ data.tar.gz: 21d2297e40a0d97e46f343413114fdbebebc0bfa40b53d567cb63229a3bc5055
5
5
  SHA512:
6
- metadata.gz: 3b558bf2e8b153d3c173d1219b0689147611f341e80a9454634247bcf830cf378fb6780045ece64ecd54d42b34efb57e246e66d89e292aa67cd7ad4c7ba13536
7
- data.tar.gz: dfd3b28e1322227882c6b8b1432b6119cb3678cedb28b6cadde4fce09358b31d451b1297af664f0f6c03a26df10cdb7c0e1cf8d2b10ef4ecabea24c69e36cd67
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) => {
@@ -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.0"
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.0
4
+ version: 3.22.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregorio Galante