Skip to content

Commit

Permalink
feat: simple user name protection
Browse files Browse the repository at this point in the history
  • Loading branch information
plutoless committed Oct 23, 2024
1 parent 28b55ba commit d155b8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demo/src/components/loginCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const LoginCard = () => {
message.error("please enter a user name")
return
}

if (userName !== "agora.io") {
message.error("this is a internal environment protected by password, please contact the administrator");
return
}

const userId = getRandomUserId()
dispatch(setOptions({
userName,
Expand Down

0 comments on commit d155b8d

Please sign in to comment.