Signup: add a note about remembering your password.

master
Tom Hacohen 4 years ago
parent 0c59aef1dc
commit e9db783640

@ -11,10 +11,8 @@ import Switch from "@material-ui/core/Switch";
import { routeResolver } from "./App"; import { routeResolver } from "./App";
import ExternalLink from "./widgets/ExternalLink";
import Container from "./widgets/Container"; import Container from "./widgets/Container";
import * as C from "./constants";
import LoadingIndicator from "./widgets/LoadingIndicator"; import LoadingIndicator from "./widgets/LoadingIndicator";
import Alert from "@material-ui/lab/Alert"; import Alert from "@material-ui/lab/Alert";
import { CircularProgress } from "@material-ui/core"; import { CircularProgress } from "@material-ui/core";
@ -124,9 +122,6 @@ export default function SignupPage() {
const styles = { const styles = {
form: { form: {
}, },
forgotPassword: {
paddingTop: 20,
},
textField: { textField: {
marginTop: 20, marginTop: 20,
}, },
@ -205,9 +200,7 @@ export default function SignupPage() {
value={password} value={password}
onChange={handleInputChange(setPassword)} onChange={handleInputChange(setPassword)}
/> />
<div style={styles.forgotPassword}>
<ExternalLink href={C.forgotPassword}>Forgot password?</ExternalLink>
</div>
<FormGroup> <FormGroup>
<FormControlLabel <FormControlLabel
control={ control={
@ -225,6 +218,10 @@ export default function SignupPage() {
<Alert severity="error" style={styles.textField}>{errors.errorGeneral}</Alert> <Alert severity="error" style={styles.textField}>{errors.errorGeneral}</Alert>
)} )}
<Alert severity="warning" style={styles.textField}>
Please make sure you remember your password, as it <em>can't</em> be recovered if lost!
</Alert>
<div style={styles.submit}> <div style={styles.submit}>
<Button <Button
variant="contained" variant="contained"

Loading…
Cancel
Save