!63 Fix the issue of authentication failure after re authentication(#32411)

From: @liubuguiii 
Reviewed-by: @tangjie02 
Signed-off-by: @tangjie02
This commit is contained in:
openeuler-ci-bot 2024-04-10 06:56:44 +00:00 committed by Gitee
commit 461e8faa0a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,35 @@
From cf643e8b7db0fd55498f325b1a6af0bda141b7fa Mon Sep 17 00:00:00 2001
From: liuxinhao <liuxinhao@kylinsec.com.cn>
Date: Tue, 26 Mar 2024 13:40:35 +0800
Subject: [PATCH] fix(polkit-agent): Fix the issue of authentication failure
after re authentication
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 修复授权认证失败时点击重新认证时不会进行认证的问题
Closes #32411
---
src/polkit-agent/dialog.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/polkit-agent/dialog.cpp b/src/polkit-agent/dialog.cpp
index e7da7fe..e965c2a 100644
--- a/src/polkit-agent/dialog.cpp
+++ b/src/polkit-agent/dialog.cpp
@@ -163,7 +163,11 @@ void Dialog::startAuth(const QString& userName)
m_authController->cancelAuthentication();
}
+ ui->btn_ok->setVisible(true);
ui->btn_ok->setEnabled(false);
+
+ ui->btn_reauth->setVisible(false);
+
ui->edit->setEnabled(false);
ui->edit->lineEdit()->setPlaceholderText("");
ui->edit->lineEdit()->clear();
--
2.33.0

View File

@ -7,7 +7,7 @@
Name: kiran-session-guard
Version: 2.5.1
Release: 11%{?dist}
Release: 12%{?dist}
Summary: Kiran desktop environment login and lock screen dialog
Summary(zh_CN): Kiran桌面环境登录和解锁框
@ -30,6 +30,7 @@ Patch0013: 0013-fix-code-scanning-Fix-some-static-code-scanning-issu.patch
Patch0014: 0014-fix-virutalkeyboard-Add-detection-for-whether-to-ins.patch
Patch0015: 0015-fix-cursor-incorrect-scaling-cursor-size.patch
Patch0016: 0016-fix-polkit-ts-fix-untranslated-text-from-polkit-agen.patch
Patch0017: 0017-fix-polkit-agent-Fix-the-issue-of-authentication-fai.patch
BuildRequires: cmake
BuildRequires: gcc-c++
@ -174,6 +175,9 @@ gtk-update-icon-cache -f /usr/share/icons/hicolor/
rm -rf %{buildroot}
%changelog
* Wed Apr 10 2024 liuxinhao <liuxinhao@kylinsec.com.cn> - 2.5.1-12
- KYOS-B: Fix the issue of authentication failure after re authentication(#32411)
* Wed Feb 21 2024 liuxinhao <liuxinhao@kylinsec.com.cn> - 2.5.1-11
- KYOS-B: Fix ci issues
- KYOS-B: Add virtual keyboard detection(#29712)