From e08bd744a849fde2a3132324c4e0e670adf42b39 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 3 Jul 2024 23:02:37 +0200 Subject: [PATCH] [users] Repair test after switch to yescrypt --- src/modules/users/TestPasswordJob.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/users/TestPasswordJob.cpp b/src/modules/users/TestPasswordJob.cpp index 1409e37b6..18e9b8ec2 100644 --- a/src/modules/users/TestPasswordJob.cpp +++ b/src/modules/users/TestPasswordJob.cpp @@ -36,14 +36,14 @@ void PasswordTests::testSalt() { QString s = SetPasswordJob::make_salt( 8 ); - QCOMPARE( s.length(), 4 + 8 ); // 8 salt chars, plus $6$, plus trailing $ - QVERIFY( s.startsWith( "$6$" ) ); + QCOMPARE( s.length(), 4 + 8 ); // 8 salt chars, plus $y$, plus trailing $ + QVERIFY( s.startsWith( "$y$" ) ); QVERIFY( s.endsWith( '$' ) ); qDebug() << "Obtained salt" << s; s = SetPasswordJob::make_salt( 11 ); QCOMPARE( s.length(), 4 + 11 ); - QVERIFY( s.startsWith( "$6$" ) ); + QVERIFY( s.startsWith( "$y$" ) ); QVERIFY( s.endsWith( '$' ) ); qDebug() << "Obtained salt" << s; }