feat: synchronize account icons across game profiles

This commit is contained in:
Hide_D committed 2026-07-31 11:21:08 +00:00
1 parent c8adeeb47b
commit 5f20413552
87 files changed
+5755 -280

No files matched your search

@@ -49,9 +49,7 @@ describe('password credential compatibility', () => {
password: 'current-password',
});
const userSalt = 'ref-user-salt';
const browserHash = createHash('sha512')
.update(`${globalSalt}current-password${globalSalt}`)
.digest('hex');
const browserHash = createHash('sha512').update(`${globalSalt}current-password${globalSalt}`).digest('hex');
user.passwordSalt = userSalt;
user.passwordHash = createHash('sha512').update(`${userSalt}${browserHash}${userSalt}`).digest('hex');