|
Kevin Kofler |
cf94b27 |
From db093bf04ca1e42efa543f064d826775edf8c845 Mon Sep 17 00:00:00 2001
|
|
Kevin Kofler |
cf94b27 |
Message-Id: <db093bf04ca1e42efa543f064d826775edf8c845.1492299277.git.kevin.kofler@chello.at>
|
|
Kevin Kofler |
cf94b27 |
From: Teo Mrnjavac <teo@kde.org>
|
|
Kevin Kofler |
cf94b27 |
Date: Tue, 24 Jan 2017 11:24:46 +0100
|
|
Kevin Kofler |
cf94b27 |
Subject: [PATCH] Fix issue which disallowed non-Latin1 characters in
|
|
Kevin Kofler |
cf94b27 |
passwords.
|
|
Kevin Kofler |
cf94b27 |
|
|
Kevin Kofler |
cf94b27 |
Fix issue which disallowed non-Latin1 characters in passwords.
|
|
Kevin Kofler |
cf94b27 |
https://github.com/calamares/calamares/commit/20d279a40921992c15e670c86d486985a555cf83
|
|
Kevin Kofler |
cf94b27 |
|
|
Kevin Kofler |
cf94b27 |
[users] SetPasswordJob: Also encode m_userName in UTF-8, not Latin1.
|
|
Kevin Kofler |
cf94b27 |
(Kevin Kofler)
|
|
Kevin Kofler |
cf94b27 |
https://github.com/calamares/calamares/commit/97c9a7c6e4f0207959b427ce8e2732051b2f574b
|
|
Kevin Kofler |
cf94b27 |
---
|
|
Kevin Kofler |
cf94b27 |
src/modules/users/SetPasswordJob.cpp | 5 ++---
|
|
Kevin Kofler |
cf94b27 |
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
Kevin Kofler |
cf94b27 |
|
|
Kevin Kofler |
cf94b27 |
diff --git a/src/modules/users/SetPasswordJob.cpp b/src/modules/users/SetPasswordJob.cpp
|
|
Kevin Kofler |
cf94b27 |
index 5121a76..79b3eeb 100644
|
|
Kevin Kofler |
cf94b27 |
--- a/src/modules/users/SetPasswordJob.cpp
|
|
Kevin Kofler |
cf94b27 |
+++ b/src/modules/users/SetPasswordJob.cpp
|
|
Kevin Kofler |
cf94b27 |
@@ -74,10 +74,9 @@ SetPasswordJob::exec()
|
|
Kevin Kofler |
cf94b27 |
}
|
|
Kevin Kofler |
cf94b27 |
|
|
Kevin Kofler |
cf94b27 |
QString encrypted = QString::fromLatin1(
|
|
Kevin Kofler |
cf94b27 |
- crypt( m_newPassword.toLatin1(),
|
|
Kevin Kofler |
cf94b27 |
+ crypt( m_newPassword.toUtf8(),
|
|
Kevin Kofler |
cf94b27 |
QString( "$6$%1$" )
|
|
Kevin Kofler |
cf94b27 |
- .arg( m_userName )
|
|
Kevin Kofler |
cf94b27 |
- .toLatin1() ) );
|
|
Kevin Kofler |
cf94b27 |
+ .arg( m_userName ).toUtf8() ) );
|
|
Kevin Kofler |
cf94b27 |
|
|
Kevin Kofler |
cf94b27 |
int ec = CalamaresUtils::System::instance()->
|
|
Kevin Kofler |
cf94b27 |
targetEnvCall( { "usermod",
|
|
Kevin Kofler |
cf94b27 |
--
|
|
Kevin Kofler |
cf94b27 |
2.9.3
|
|
Kevin Kofler |
cf94b27 |
|