Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/authentication #2

Merged
merged 37 commits into from
Oct 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
3e66745
wip: create auth wrapper component
Saba-Var Sep 30, 2022
f2e2534
markup: build log in page
Saba-Var Sep 30, 2022
d4a18e8
chore: translate log in page
Saba-Var Sep 30, 2022
ece7684
chore: move log in form into separate component
Saba-Var Sep 30, 2022
a3a5c4a
chore: change hero section responsive design
Saba-Var Oct 1, 2022
347794f
markup: build ui of sign up page
Saba-Var Oct 1, 2022
b83a5f7
styles: change language selector visibility
Saba-Var Oct 3, 2022
651ef40
chore: remove unused files from Authentication folder
Saba-Var Oct 3, 2022
50a6e60
chore: change page component folder names
Saba-Var Oct 3, 2022
9454c7c
feat: validate sign up page with formik
Saba-Var Oct 3, 2022
a4efad1
chore: change yup schema name of sign up page
Saba-Var Oct 4, 2022
2e8d565
chore: create log in form validation schema
Saba-Var Oct 4, 2022
1b0a092
feat: validate log in page
Saba-Var Oct 4, 2022
490ac2c
chore: change custom hooks file extension
Saba-Var Oct 4, 2022
9822e26
chore: create custom hook for sign up form
Saba-Var Oct 4, 2022
397890b
feat: add arrow icon to navigate to home page
Saba-Var Oct 4, 2022
cc7ed76
feat: integrate react-query and create axios instance
Saba-Var Oct 14, 2022
d7680ee
feat: register new users and show rate limit exceed modal
Saba-Var Oct 14, 2022
9375828
chore: use react query for registering user
Saba-Var Oct 14, 2022
f5de346
feat: show success modal after registration
Saba-Var Oct 14, 2022
88362bc
feat: redirect users to request exceed page after 429 status code
Saba-Var Oct 15, 2022
7c5506b
chore: remove google authentication stuff
Saba-Var Oct 15, 2022
c20844f
styles: change indigo color with blue
Saba-Var Oct 15, 2022
2b17e49
chore: change styling of authentication forms
Saba-Var Oct 16, 2022
405ea56
chore: replace custom icons with heroicons
Saba-Var Oct 16, 2022
0493bc8
feat: submit sign in form and show errors
Saba-Var Oct 16, 2022
baae156
feat: create private axios instance and integrate redux toolkit
Saba-Var Oct 16, 2022
f4b720b
refactor: add response interceptor to axios instance for 429 status
Saba-Var Oct 18, 2022
c3234ec
feat: set cookie after sign in according to checkbox value
Saba-Var Oct 18, 2022
ac0e6fc
feat: create account activation page
Saba-Var Oct 19, 2022
13f216e
chore: rename variable of jwt
Saba-Var Oct 22, 2022
a7a6d29
feat: show account activation page content conditionally
Saba-Var Oct 23, 2022
17ad899
chore: check for 404 status code during activation
Saba-Var Oct 23, 2022
c5051e8
feat: redirect user according to selected language
Saba-Var Oct 23, 2022
fbea60a
fix: check language cookie value
Saba-Var Oct 24, 2022
89a5a47
feat: add action button to account activation page
Saba-Var Oct 24, 2022
8d7cddb
chore: disable log in button after click
Saba-Var Oct 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: change yup schema name of sign up page
  • Loading branch information
Saba-Var committed Oct 4, 2022
commit a4efad130e43cd273c83a60c4c93a0107b989e5e
4 changes: 2 additions & 2 deletions components/sign-up/SignUpForm/SignUpForm.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { InputField, SubmitButton } from 'components'
import { registrationFormSchema } from 'schemas'
import { signUpSchema } from 'schemas'
import { Form, Formik } from 'formik'

const SignUpForm = () => {
return (
<Formik
validationSchema={registrationFormSchema}
validationSchema={signUpSchema}
initialValues={{
username: '',
email: '',
Expand Down
2 changes: 1 addition & 1 deletion schemas/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './registrationFormSchema'
export * from './signUpSchema'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Yup from 'yup'

export const registrationFormSchema = Yup.object({
export const signUpSchema = Yup.object({
username: Yup.string()
.trim()
.required('username-required')
Expand Down