Skip to content

Commit 7b1ac5b

Browse files
author
Maledong
authored
Revert "fix typo in simple-profiling.md (#4115)" (#4116)
This reverts commit 5844c38. Because the real logic is when the user name exists, a 400 error will be back.
1 parent 5844c38 commit 7b1ac5b

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)