38 lines
1.7 KiB
Diff
38 lines
1.7 KiB
Diff
|
|
From 4229601e2c53c2e002436a0132663f83a89e6e47 Mon Sep 17 00:00:00 2001
|
||
|
|
From: t_feng <fengtao40@huawei.com>
|
||
|
|
Date: Wed, 1 Jul 2020 18:08:35 +0800
|
||
|
|
Subject: [PATCH] disable ssh login checkbox
|
||
|
|
|
||
|
|
---
|
||
|
|
pyanaconda/ui/gui/spokes/root_password.py | 7 ++++----
|
||
|
|
1 file changed, 4 insertions(+), 3 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/pyanaconda/ui/gui/spokes/root_password.py b/pyanaconda/ui/gui/spokes/root_password.py
|
||
|
|
index 1d19380..f2e389d 100644
|
||
|
|
--- a/pyanaconda/ui/gui/spokes/root_password.py
|
||
|
|
+++ b/pyanaconda/ui/gui/spokes/root_password.py
|
||
|
|
@@ -80,6 +80,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
|
||
|
|
self._enable_root_radio = self.builder.get_object("enable_root_radio")
|
||
|
|
self._disable_root_radio = self.builder.get_object("disable_root_radio")
|
||
|
|
self._root_password_ssh_login_override = self.builder.get_object("root_password_ssh_login_override")
|
||
|
|
+ self._root_password_ssh_login_override.set_visible(False)
|
||
|
|
+ self._root_password_ssh_login_override.set_no_show_all(True)
|
||
|
|
self._revealer = self.builder.get_object("password_revealer")
|
||
|
|
|
||
|
|
# Install the password checks:
|
||
|
|
@@ -159,9 +160,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke, GUISpokeInputCheckHandler)
|
||
|
|
control.set_active(True)
|
||
|
|
self.on_root_enabled_changed(control)
|
||
|
|
|
||
|
|
- self._root_password_ssh_login_override.set_active(
|
||
|
|
- self._users_module.RootPasswordSSHLoginAllowed
|
||
|
|
- )
|
||
|
|
+ self._root_password_ssh_login_override.set_visible(False)
|
||
|
|
+ self._root_password_ssh_login_override.set_no_show_all(True)
|
||
|
|
if self.root_enabled:
|
||
|
|
# rerun checks so that we have a correct status message, if any
|
||
|
|
self.checker.run_checks()
|
||
|
|
--
|
||
|
|
2.23.0
|
||
|
|
|