fix: stupid forgetting sha256

This commit is contained in:
CrescentLeaf
2025-12-06 16:58:20 +08:00
parent 48bd884690
commit f9dff68339

View File

@@ -215,7 +215,7 @@ export default class LingChairClient {
const re = await this.invoke('User.register', {
nickname,
username,
password,
password: crypto.createHash('sha256').update(password).digest('hex'),
})
if (re.code != 200)
throw new CallbackError(re)