Fix issue which disallowed non-Latin1 characters in passwords.
This commit is contained in:
parent
08a350c1d7
commit
20d279a409
@ -74,10 +74,9 @@ SetPasswordJob::exec()
|
||||
}
|
||||
|
||||
QString encrypted = QString::fromLatin1(
|
||||
crypt( m_newPassword.toLatin1(),
|
||||
crypt( m_newPassword.toUtf8(),
|
||||
QString( "$6$%1$" )
|
||||
.arg( m_userName )
|
||||
.toLatin1() ) );
|
||||
.arg( m_userName ).toLatin1() ) );
|
||||
|
||||
int ec = CalamaresUtils::System::instance()->
|
||||
targetEnvCall( { "usermod",
|
||||
|
Loading…
Reference in New Issue
Block a user