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

Commit

Permalink
Merge pull request #108 from isd-sgcu/dev
Browse files Browse the repository at this point in the history
feat: staff password
  • Loading branch information
isd-team-sgcu authored Aug 6, 2023
2 parents 4040c2b + 8502531 commit 0f44643
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 0f44643

Please sign in to comment.