issues
search
gokhanozdemir
/
mesela-ecommerce
0
stars
0
forks
source link
T7: Login Form
#16
Open
gokhanozdemir
opened
3 months ago
gokhanozdemir
commented
3 months ago
[ ] Create Login Form using react-hook-form library
[ ] it should have
Email & Password
fields (only email
validation)
[ ] on
Submit
it should create a POST request to “/login” endpoint by a
thunk action
[ ] if successfully logged in, user info should be saved on userReducer
[ ] user should be redirected to home page
[ ] user info should be seen on layout header
[ ] use
gravatar
image to fetch user picture by email!
[ ] save token to
localStorage
[ ] if log in is failed, show error message by toaster and keep user in login page
You can use
public users
below ( Password: 123456 )
customer@commerce.com
store@commerce.com
admin@commerce.com