diff options
Diffstat (limited to 'raveos-calamares-module/raveusers/RaveUsersBackend.cpp')
| -rw-r--r-- | raveos-calamares-module/raveusers/RaveUsersBackend.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/raveos-calamares-module/raveusers/RaveUsersBackend.cpp b/raveos-calamares-module/raveusers/RaveUsersBackend.cpp index 6f8eea6..538732f 100644 --- a/raveos-calamares-module/raveusers/RaveUsersBackend.cpp +++ b/raveos-calamares-module/raveusers/RaveUsersBackend.cpp @@ -75,7 +75,7 @@ RaveUsersBackend::hostnameStatus() const QString RaveUsersBackend::passwordStatus() const { - if ( m_password.isEmpty() ) + if ( m_password.isEmpty() || m_passwordSecondary.isEmpty() ) { return QString(); } @@ -93,7 +93,7 @@ RaveUsersBackend::rootPasswordStatus() const { return QString(); } - if ( m_rootPassword.isEmpty() ) + if ( m_rootPassword.isEmpty() || m_rootPasswordSecondary.isEmpty() ) { return QString(); } @@ -115,13 +115,13 @@ RaveUsersBackend::isReady() const { return false; } - if ( m_password.isEmpty() || !passwordStatus().isEmpty() ) + if ( m_password.isEmpty() || m_password != m_passwordSecondary ) { return false; } if ( m_setRootPassword && !m_reuseRootPassword ) { - if ( m_rootPassword.isEmpty() || !rootPasswordStatus().isEmpty() ) + if ( m_rootPassword.isEmpty() || m_rootPassword != m_rootPasswordSecondary ) { return false; } @@ -231,6 +231,16 @@ RaveUsersBackend::setReuseRootPassword( bool b ) } void +RaveUsersBackend::setAutoLogin( bool b ) +{ + if ( b != m_autoLogin ) + { + m_autoLogin = b; + emit autoLoginChanged(); + } +} + +void RaveUsersBackend::checkReady() { const bool ready = isReady(); |