mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 09:55:37 -04:00
Add setRootPassword option to the Users module.
If set to true, the user must set a root password. Otherwise, the user won't be asked and a root password will not be set.
This commit is contained in:
parent
d6441bbcb4
commit
46e90ccda2
5 changed files with 42 additions and 10 deletions
|
@ -151,5 +151,13 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||
Calamares::JobQueue::instance()->globalStorage()->insert( "sudoersGroup",
|
||||
configurationMap.value( "sudoersGroup" ).toString() );
|
||||
}
|
||||
|
||||
if ( configurationMap.contains( "setRootPassword" ) &&
|
||||
configurationMap.value( "setRootPassword" ).type() == QVariant::Bool )
|
||||
{
|
||||
Calamares::JobQueue::instance()->globalStorage()->insert( "setRootPassword",
|
||||
configurationMap.value( "setRootPassword" ).toBool() );
|
||||
m_widget->setShowRootPassword( configurationMap.value( "setRootPassword" ).toBool() );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue