Update Secure Coding - Password Reset.md
This commit is contained in:
parent
d068a47ba8
commit
8cf3427e21
@ -40,8 +40,7 @@ res.send('Password updated successfully');
|
|||||||
});
|
});
|
||||||
function validateToken(username, token) {
|
function validateToken(username, token) {
|
||||||
// Logic to validate the token for the user
|
// Logic to validate the token for the user
|
||||||
// Check if the token is valid, belongs to the user, and has not
|
// Check if the token is valid, belongs to the user, and has not expired
|
||||||
expired
|
|
||||||
// Return true if valid, false otherwise
|
// Return true if valid, false otherwise
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user