[users] SetPasswordJob: Also encode m_userName in UTF-8, not Latin1.

This commit is contained in:
Kevin Kofler 2017-01-24 15:06:59 +01:00
parent 20d279a409
commit 97c9a7c6e4

View file

@ -76,7 +76,7 @@ SetPasswordJob::exec()
QString encrypted = QString::fromLatin1(
crypt( m_newPassword.toUtf8(),
QString( "$6$%1$" )
.arg( m_userName ).toLatin1() ) );
.arg( m_userName ).toUtf8() ) );
int ec = CalamaresUtils::System::instance()->
targetEnvCall( { "usermod",