!68 修复控制面板中非root用户声音中没有设备信息的问题

From: @pei-jiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2022-03-09 07:51:43 +00:00 committed by Gitee
commit 6583f7b94d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From a59a56767afb447307264827df8ae9a03b60f250 Mon Sep 17 00:00:00 2001
From: pei-jiankang <peijiankang@kylinos.cn>
Date: Wed, 9 Mar 2022 09:42:52 +0800
Subject: [PATCH] disable the str "'" of password check
---
plugins/account/userinfo/createuserdialog.cpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/plugins/account/userinfo/createuserdialog.cpp b/plugins/account/userinfo/createuserdialog.cpp
index 2af9290..e35732c 100644
--- a/plugins/account/userinfo/createuserdialog.cpp
+++ b/plugins/account/userinfo/createuserdialog.cpp
@@ -318,8 +318,6 @@ void CreateUserDialog::pwdLegalityCheck(QString pwd){
}
bool CreateUserDialog::checkCharLegitimacy(QString password){
- if (password.contains("'"))
- return false;
//密码不能包含非标准字符
foreach (QChar ch, password){
if (int(ch.toLatin1() <= 0 || int(ch.toLatin1()) > 127)){
--
2.33.0

View File

@ -1,7 +1,7 @@
%define debug_package %{nil}
Name: ukui-control-center
Version: 3.0.4
Release: 5
Release: 6
Summary: utilities to configure the UKUI desktop
License: GPL-2+
URL: http://www.ukui.org
@ -9,6 +9,7 @@ Source0: %{name}-%{version}.tar.gz
Patch01: 0001-modify-version-info-error.patch
Patch02: 0002-modify-area-info-display-error.patch
Patch03: 0003-fix-power-missing-issue.patch
Patch04: 0004-disable-the-str-of-password-check.patch
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtbase-devel
@ -84,6 +85,7 @@ Requires: qt5-qtquickcontrols
Requires: ddcutil
Requires: glib2
Requires: systemd-pam
Recommends: qt5-qtquickcontrols
@ -108,6 +110,7 @@ Suggests: ukui-settings-daemon
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
qmake-qt5
@ -156,6 +159,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 09 2022 pei-jiankang <peijiankang@kylinos.cn> - 3.0.4-6
- modify audio-info display
* Tue Mar 08 2022 tanyulong <tanyulong@kylinos.cn> - 3.0.4-5
- fix no checkuserpwd directory