From 20d279a40921992c15e670c86d486985a555cf83 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 24 Jan 2017 11:24:46 +0100 Subject: [PATCH] Fix issue which disallowed non-Latin1 characters in passwords. --- src/modules/users/SetPasswordJob.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/users/SetPasswordJob.cpp b/src/modules/users/SetPasswordJob.cpp index 5121a7632..0a430c8a4 100644 --- a/src/modules/users/SetPasswordJob.cpp +++ b/src/modules/users/SetPasswordJob.cpp @@ -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",