File tree Expand file tree Collapse file tree
apps/frontend/src/containers/auth Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useState } from 'react' ;
2- import { useNavigate , useLocation , replace } from 'react-router-dom' ;
2+ import { useNavigate , useLocation } from 'react-router-dom' ;
33import { useAuth } from '../../components/AuthProvider' ;
44import { Button } from '../../components/ui/button' ;
55import { Card , CardContent } from '../../components/ui/card' ;
@@ -99,8 +99,7 @@ export const LoginPage: React.FC = () => {
9999 await login ( { email, password } ) ;
100100 navigate ( from , { replace : true } ) ;
101101 } else if ( authPage === AuthPage . Signup ) {
102- // TODO: signup should take in just email, password, and username
103- // await signup({ email, password, firstName, lastName });
102+ await signup ( { email, password, firstName : username , lastName : '' } ) ;
104103 navigate ( '/confirm-registered' , { replace : true } ) ;
105104 setError ( 'Account created successfully! Please sign in.' ) ;
106105 } else if ( authPage === AuthPage . ForgotPassword ) {
You can’t perform that action at this time.
0 commit comments