Skip to content

Commit

Permalink
Add clarification for one-time code intended usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Aug 27, 2023
1 parent 31ca40f commit 4529d4d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/components/OneTimeCode/OneTimeCode.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from "react";
import { gql, useMutation } from "@apollo/client";
import { Button, Grid, Typography } from "@mui/material";
import { Alert, Button, Grid, Typography } from "@mui/material";
import useApolloErrorHandler from "../../hooks/useApolloErrorHandler";
import CodeDialog from "./CodeDialog";

Expand Down Expand Up @@ -47,6 +47,15 @@ function OneTimeCode() {
just the temporary code.
</Typography>
</Grid>
<Grid item>
<Alert severity="warning">
You should never use the code to let someone else use your account
for scoretaking, especially if you are a privileged user
(organizer/delegate). Instead, the person should create a WCA
account and then be added as a scoretaker in the competition
settings.
</Alert>
</Grid>
<Grid item>
<Button
variant="contained"
Expand Down

0 comments on commit 4529d4d

Please sign in to comment.