mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
[users] Don't allow continuing with an empty login name
The status for an empty login name is '' (empty), for ok -- this is so that there is no complaint about it. But it's not ok to continue with an empty name.
This commit is contained in:
parent
2911c789f9
commit
328a5bbbfb
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ Config::isReady() const
|
|||
{
|
||||
bool readyFullName = !fullName().isEmpty(); // Needs some text
|
||||
bool readyHostname = hostNameStatus().isEmpty(); // .. no warning message
|
||||
bool readyUsername = loginNameStatus().isEmpty(); // .. no warning message
|
||||
bool readyUsername = !loginName().isEmpty() && loginNameStatus().isEmpty(); // .. no warning message
|
||||
bool readyUserPassword = userPasswordValidity() != Config::PasswordValidity::Invalid;
|
||||
bool readyRootPassword = rootPasswordValidity() != Config::PasswordValidity::Invalid;
|
||||
return readyFullName && readyHostname && readyUsername && readyUserPassword && readyRootPassword;
|
||||
|
|
Loading…
Add table
Reference in a new issue