Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
feat: staff password
Browse files Browse the repository at this point in the history
  • Loading branch information
betich committed Aug 6, 2023
1 parent a19cdfc commit b9247be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NEXT_PUBLIC_API_BASE_URL=
NEXT_PUBLIC_APP_BASE_URL=
NEXT_PUBLIC_SSO_BASE_URL=
NEXT_PUBLIC_STAFF_PASSWORD=
2 changes: 1 addition & 1 deletion src/pages/staff.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Scan() {
const [password, setPassword] = useState<string>('');

const handleSavePassword = () => {
if (password === 'lmao123456-thee') {
if (password === process.env.NEXT_PUBLIC_STAFF_PASSWORD) {
localStorage.setItem('access', 'true');
setCanAccess(true);
toast?.setToast('success', 'Logged in successfully');
Expand Down

0 comments on commit b9247be

Please sign in to comment.