[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
ba1013e5a7
commit
4d3f20f4a7
@ -566,7 +566,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…
Reference in New Issue
Block a user