Skip to content

Commit

Permalink
add disclaimer for public deployment for portfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
Clarence Mesina committed Nov 3, 2023
1 parent e9181d8 commit 1c689f0
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export const LoginPage = () => {
console.log("jwt exists");
dispatch(fetchUserDetails());
dispatch(appStateSlice.actions.setSnackBarAlert({
show: true,
message: 'Welcome back!',
severity: 'success'
show: true,
message: 'Welcome back!',
severity: 'success'
}))
}
}
Expand Down Expand Up @@ -93,7 +93,7 @@ export const LoginPage = () => {
padding={20}
>
<Grid item xs={16} sx={{textAlign: 'center'}}>
<Typography variant="h1">Hotel Management System</Typography>
<Typography variant="h1">Hotel Management System</Typography>
</Grid>
<Grid item xs={8}>
<Typography variant="h2">Login</Typography>
Expand All @@ -105,8 +105,17 @@ export const LoginPage = () => {
<Card variant="outlined" sx={{padding: 5}}>
<form onSubmit={handleLoginSubmit}>
<Stack spacing={3}>
<Alert severity={"warning"} variant={"filled"}>
<Typography variant="h6">This is a demo application.</Typography>
<Typography variant="body1">
This application was created as part of a university project. It is not intended for
commercial use. Please do not enter any sensitive information. There may be bugs and
security vulnerabilities. This instance is reset every 24 hours.
To login as admin, use the username <strong>admin</strong> and
password <strong>admin</strong>.
</Typography>
</Alert>
{showAlert.show && <Alert severity="error">{showAlert.message}</Alert>}

<TextField required label="Username" onChange={(e) => setUsername(e.target.value)}/>
<TextField required label="Password" type="password"
onChange={(e) => setPassword(e.target.value)}/>
Expand Down

0 comments on commit 1c689f0

Please sign in to comment.