mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
fix signup/change password can not login
This commit is contained in:
@@ -1566,11 +1566,11 @@ async function login(username, password, jqForm) {
|
||||
return
|
||||
}
|
||||
|
||||
const clientHashedPassword = await sha256(password);
|
||||
const clientHashedPassword = sha256(password);
|
||||
|
||||
const serverSideHash = await sha256(challengeData.data.secret + clientHashedPassword);
|
||||
const serverSideHash = sha256(challengeData.data.secret + clientHashedPassword);
|
||||
|
||||
const clientResponse = await hmacSha256(challengeData.data.challenge, serverSideHash);
|
||||
const clientResponse = hmacSha256(challengeData.data.challenge, serverSideHash);
|
||||
jqForm.find("input[name=response]").val(clientResponse)
|
||||
jqForm.submit()
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user