mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 12:25:38 -04:00
Fix issue which disallowed non-Latin1 characters in passwords.
This commit is contained in:
parent
08a350c1d7
commit
20d279a409
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue