mirror of
https://github.com/xfarrow/blink
synced 2025-02-15 07:50:37 +01:00
Update api.js
This commit is contained in:
parent
54a2d5397c
commit
4a0f7c093c
@ -43,6 +43,8 @@ app.post('/api/register', (req, res) => {
|
||||
return res.status(400).json("Invalid request");
|
||||
}
|
||||
|
||||
// The callback denoted by the arrow function is executed asynchronously
|
||||
// from the rest of the code outside of the hash() function
|
||||
bcrypt.hash(userData.password, 10, (err, hashedPassword) => {
|
||||
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user