* Sat Jan 11 2025 Brian Read <brianr@koozali.org> 11.0.0-38.sme

- Fix password reset for admin in user panel [SME: 12655]
This commit is contained in:
Brian Read 2025-01-11 07:04:32 +00:00
parent 174e140a04
commit 5ef3a00a05
2 changed files with 54 additions and 45 deletions

View File

@ -72,6 +72,13 @@
% </button>
%</a>
%};
%$actionResetPw = qq{
%<a href="useraccountsd?CsrfDef=$csrf_token&trt=PWS&user=$useraccounts_user_name">
% <button type='button' class='sme-password-button' title='$password_text' >
% $password_text
% </button>
%</a>
%};
%} else {
%$actionModify = qq{
%<a href="useraccountsd?CsrfDef=$csrf_token&trt=UPD&user=$useraccounts_user_name">
@ -90,7 +97,7 @@
% </button>
%</a>
%};
%} else {
%} elsif ($useraccounts_user_name ne 'admin') {
%my $lock_text = l('ACCOUNT LOCKED'); # Localized text
%my $csrf_token = "TOKEN"; # CSRF token for security
%my $useraccounts_user_name = $user->key; # useraccountss_entry name extracted from the data structure
@ -133,7 +140,6 @@
% </button>
%</a>
%};
<td class='sme-border' style="min-width:35em">
<%= $c->render_to_string(inline => $actionModify) %>
<%= $c->render_to_string(inline => $actionResetPw) %>

View File

@ -2,7 +2,7 @@ Summary: Sme server navigation module : manager 2
%define name smeserver-manager
Name: %{name}
%define version 11.0.0
%define release 37
%define release 38
Version: %{version}
Release: %{release}%{?dist}
License: GPL
@ -115,8 +115,11 @@ true
%defattr(-,root,root)
%changelog
* Sat Jan 11 2025 Brian Read <brianr@koozali.org> 11.0.0-38.sme
- Fix password reset for admin in user panel [SME: 12655]
* Thu Jan 09 2025 Brian Read <brianr@koozali.org> 11.0.0-37.sme
- Delete userpanelaccess from base (left in incorrectly after saome testing) [SME: 12839]
- Delete userpanelaccess from base (left in incorrectly after some testing) [SME: 12839]
* Thu Jan 09 2025 Brian Read <brianr@koozali.org> 11.0.0-36.sme
- Fix spamassassin status not coming through from email filter panel to email settings panel [SME: 12868]