Add Sign Up and make OPEN_USER_REGISTRATION=True by default (#1265)

This commit is contained in:
Alejandra
2024-07-22 19:40:56 -05:00
committed by GitHub
parent 7a9920ac7b
commit c147a95563
5 changed files with 213 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
import { ViewIcon, ViewOffIcon } from "@chakra-ui/icons"
import {
Button,
Center,
Container,
FormControl,
FormErrorMessage,
@@ -11,6 +10,7 @@ import {
InputGroup,
InputRightElement,
Link,
Text,
useBoolean,
} from "@chakra-ui/react"
import {
@@ -126,14 +126,18 @@ function Login() {
</InputGroup>
{error && <FormErrorMessage>{error}</FormErrorMessage>}
</FormControl>
<Center>
<Link as={RouterLink} to="/recover-password" color="blue.500">
Forgot password?
</Link>
</Center>
<Link as={RouterLink} to="/recover-password" color="blue.500">
Forgot password?
</Link>
<Button variant="primary" type="submit" isLoading={isSubmitting}>
Log In
</Button>
<Text>
Don't have an account?{" "}
<Link as={RouterLink} to="/signup" color="blue.500">
Sign up
</Link>
</Text>
</Container>
</>
)