[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
@ -381,6 +381,10 @@ Config::setReuseUserPasswordForRoot( bool reuse )
|
||||
{
|
||||
m_reuseUserPasswordForRoot = reuse;
|
||||
emit reuseUserPasswordForRootChanged( reuse );
|
||||
{
|
||||
auto rp = rootPasswordStatus();
|
||||
emit rootPasswordStatusChanged( rp.first, rp.second );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -391,6 +395,14 @@ Config::setRequireStrongPasswords( bool strong )
|
||||
{
|
||||
m_requireStrongPasswords = strong;
|
||||
emit requireStrongPasswordsChanged( strong );
|
||||
{
|
||||
auto rp = rootPasswordStatus();
|
||||
emit rootPasswordStatusChanged( rp.first, rp.second );
|
||||
}
|
||||
{
|
||||
auto up = userPasswordStatus();
|
||||
emit userPasswordStatusChanged( up.first, up.second );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user