Skip to content

Commit 26315ad

Browse files
author
lucifer
committed
fix: typo
1 parent 1d2a7fe commit 26315ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function decrypt(hash) {
2929
const decipher = crypto.createDecipheriv(
3030
algorithm,
3131
secret.slice(0, 32),
32-
Buffer.from(hash.iv, "hex")
32+
Buffer.from(hash, iv, "hex")
3333
);
3434

3535
const decrpyted = Buffer.concat([

0 commit comments

Comments
 (0)