Fix issue which disallowed non-Latin1 characters in passwords.

main
Teo Mrnjavac 8 years ago
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…
Cancel
Save