mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
[users] Re-check password validity on change of conditions
- if the user password is reused (or not) then check the status of the passwords against the new reuse-setting - if the allow-weak-passwords setting is changed, then check the status of passwords (both of them) against the new weakness setting
This commit is contained in:
parent
3ecab4bedb
commit
fd2399f702
1 changed files with 12 additions and 0 deletions
|
@ -381,6 +381,10 @@ Config::setReuseUserPasswordForRoot( bool reuse )
|
||||||
{
|
{
|
||||||
m_reuseUserPasswordForRoot = reuse;
|
m_reuseUserPasswordForRoot = reuse;
|
||||||
emit reuseUserPasswordForRootChanged( reuse );
|
emit reuseUserPasswordForRootChanged( reuse );
|
||||||
|
{
|
||||||
|
auto rp = rootPasswordStatus();
|
||||||
|
emit rootPasswordStatusChanged( rp.first, rp.second );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -391,6 +395,14 @@ Config::setRequireStrongPasswords( bool strong )
|
||||||
{
|
{
|
||||||
m_requireStrongPasswords = strong;
|
m_requireStrongPasswords = strong;
|
||||||
emit requireStrongPasswordsChanged( strong );
|
emit requireStrongPasswordsChanged( strong );
|
||||||
|
{
|
||||||
|
auto rp = rootPasswordStatus();
|
||||||
|
emit rootPasswordStatusChanged( rp.first, rp.second );
|
||||||
|
}
|
||||||
|
{
|
||||||
|
auto up = userPasswordStatus();
|
||||||
|
emit userPasswordStatusChanged( up.first, up.second );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue