diff options
author | Martin Sivak <msivak@redhat.com> | 2013-02-11 14:16:18 +0100 |
---|---|---|
committer | Martin Sivak <msivak@redhat.com> | 2013-03-01 11:36:47 +0100 |
commit | 3b0adea181edb0e334a973face994488d07bc5c4 (patch) | |
tree | deb9d4d7070dc2772c3995bdebcbd62f60949c46 | |
parent | a30400af101aea81d27eb5576bbb484af936d6fa (diff) | |
download | anaconda-3b0adea181edb0e334a973face994488d07bc5c4.tar.gz anaconda-3b0adea181edb0e334a973face994488d07bc5c4.tar.xz anaconda-3b0adea181edb0e334a973face994488d07bc5c4.zip |
Password spoke is mandatory if the created user is not an admin
-rw-r--r-- | pyanaconda/ui/gui/spokes/password.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py index 441050e57..7e62ec782 100644 --- a/pyanaconda/ui/gui/spokes/password.py +++ b/pyanaconda/ui/gui/spokes/password.py @@ -85,7 +85,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke): @property def mandatory(self): - return not self.data.user.userList + return not any(user for user in self.data.user.userList + if "wheel" in user.groups) def apply(self): self.data.rootpw.password = cryptPassword(self._password) |