Skip to content

Commit d7b4df0

Browse files
authored
fix: update superseded link
The previous link displays a pop-up warning and provides the updated source material link. This commit saves the viewer a click and automatically scrolls to the anchor of the 401 HTTP status code section.
1 parent 77d9b84 commit d7b4df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/4/en/part4d.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Because the passwords themselves are not saved to the database, but <i>hashes</i
7676
await bcrypt.compare(body.password, user.passwordHash)
7777
```
7878

79-
If the user is not found, or the password is incorrect, the request is responded to with the status code [401 unauthorized](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2). The reason for the failure is explained in the response body.
79+
If the user is not found, or the password is incorrect, the request is responded to with the status code [401 unauthorized](https://www.rfc-editor.org/rfc/rfc9110.html#name-401-unauthorized). The reason for the failure is explained in the response body.
8080

8181
If the password is correct, a token is created with the method _jwt.sign_. The token contains the username and the user id in a digitally signed form.
8282

0 commit comments

Comments
 (0)