symphonia 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37c5df664c5d4a4e23242972efcb37a44a97b0000c943aba8ff68ac7ebd4d2ec
|
4
|
+
data.tar.gz: 1636c08f1a1aa674319a19172cf0291d5fa910a9930056f8598ac96b7bf65937
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2716c183798fd2acc14702ac79d44f4f210e4d4b770c6670ff78267c2ada056d3c331229371f02a66ca32d7496618a65972b1405860aace5fd7fc433161b94b
|
7
|
+
data.tar.gz: dbeff2e27c22f063183e6eecd395ba895cf8c6986841281d1914f2e3997ee4a833fd3e78c7a38dca24e49041083f3398a876ea8a4bd476b11ec57cf9830c1734
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
|
+
## [4.1.1] - 2021-12-26
|
9
|
+
### Fixed
|
10
|
+
- user activation
|
8
11
|
## [4.1.0] - 2021-10-23
|
9
12
|
### Fixed
|
10
13
|
- missing default settings template in generator:setup
|
@@ -32,7 +32,7 @@ module Symphonia
|
|
32
32
|
if @user.valid? && verify_registration && @user.save(validate: false)
|
33
33
|
Notifier.activation_user(@user).deliver_later
|
34
34
|
Notifier.user_registered(@user).deliver_later
|
35
|
-
format.html { redirect_to
|
35
|
+
format.html { redirect_to login_path, notice: t(:text_user_registered) }
|
36
36
|
format.json { render status: :created }
|
37
37
|
else
|
38
38
|
format.html { render action: 'register' }
|
@@ -71,14 +71,14 @@ module Symphonia
|
|
71
71
|
@user = find_account_by_mail(params.require(:email))
|
72
72
|
if @user
|
73
73
|
if @user.active?
|
74
|
-
redirect_to
|
74
|
+
redirect_to login_path, flash: { error: t(:text_user_alerady_active) }
|
75
75
|
else
|
76
76
|
@user.reset_perishable_token!
|
77
77
|
Notifier.activation_user(@user).deliver_later
|
78
|
-
redirect_to
|
78
|
+
redirect_to login_path, notice: t(:text_activation_resend)
|
79
79
|
end
|
80
80
|
else
|
81
|
-
redirect_to
|
81
|
+
redirect_to login_path, flash: { error: t(:text_user_not_found) }
|
82
82
|
end
|
83
83
|
end
|
84
84
|
|
@@ -88,7 +88,7 @@ module Symphonia
|
|
88
88
|
@user.activate!
|
89
89
|
redirect_to login_path, notice: t(:text_activation_success)
|
90
90
|
else
|
91
|
-
redirect_to
|
91
|
+
redirect_to login_path, flash: { error: t(:text_user_not_found_or_token_invalid) }
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
@@ -28,7 +28,7 @@ module Symphonia
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
|
31
|
+
s.html_safe
|
32
32
|
end
|
33
33
|
|
34
34
|
def render_menu(menu, options = {})
|
@@ -38,7 +38,7 @@ module Symphonia
|
|
38
38
|
end
|
39
39
|
options[:container_class] ||= 'mr-auto'
|
40
40
|
|
41
|
-
|
41
|
+
content_tag(:ul, s.html_safe, itemscope: '', itemtype: 'http://schema.org/BreadcrumbList', class: "navbar-nav #{options[:container_class]}", id: menu.to_s)
|
42
42
|
end
|
43
43
|
|
44
44
|
def render_menu_node(menu, item, options = {})
|
@@ -1,10 +1,12 @@
|
|
1
1
|
module Symphonia
|
2
2
|
class AdminConstraint
|
3
|
+
|
3
4
|
def matches?(request)
|
4
5
|
return false if (credentials = request.session["symphonia/user_credentials"]).blank?
|
5
6
|
|
6
7
|
user = User.find_by_persistence_token(credentials.split(':')[0])
|
7
8
|
user&.admin?
|
8
9
|
end
|
10
|
+
|
9
11
|
end
|
10
|
-
end
|
12
|
+
end
|
@@ -11,7 +11,6 @@ module Symphonia
|
|
11
11
|
|
12
12
|
validates :email, presence: true, uniqueness: { case_sensitive: false }
|
13
13
|
validates :login, presence: true, uniqueness: { case_sensitive: false }
|
14
|
-
validates :first_name, presence: true
|
15
14
|
|
16
15
|
before_validation :set_uuid, only: -> { uuid.blank? }
|
17
16
|
before_validation :set_login, only: -> { login.blank? }
|
data/lib/symphonia/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: symphonia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukas Pokorny
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-pagination
|