Skip to content

Commit 5844c38

Browse files
authored
fix typo in simple-profiling.md (#4115)
Check if the user name exists, "400" will be back.
1 parent d35ad1c commit 5844c38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

locale/en/docs/guides/simple-profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ app.get('/auth', (req, res) => {
5959

6060
username = username.replace(/[!@#$%^&*]/g, '');
6161

62-
if (!username || !password || users[username]) {
62+
if (!username || !password || !users[username]) {
6363
return res.sendStatus(400);
6464
}
6565

0 commit comments

Comments
 (0)