Closed Hilal-Bilun-Kara closed 6 months ago
@gokhanozdemir hocam get isteği atamıyorum, o yüzden başarılı başarısız giriş yapamıyorum ,yardımınızı rica ederim
success: https://prnt.sc/jh_LrY9SMUdi error: https://prnt.sc/tG1ba6EGcF2D
@Hilal-Bilun-Kara bu mention araya kaynamış yeni gördüm. Sorun devam ediyor mu?
[x] A form should be created to sign up a new user
[x] Page URL should be
/signup
[x] First you need to create and
Axios instance
with baseURL: https://workintech-fe-ecommerce.onrender.com[x] You need to use
react-hook-form
library[x] Name:
name
field is required with min 3 char validation[x] Email:
email
needs to be validated[x] Password:
password
needs to be min 8 character including numbers, lower case, upper case and special chars[x] Password Validation:
password
needs to be matched to second pass input fieldRole:
role_id
field should be listed in selection box and data needs to be fetched by GET request to endpoint:/roles
role_id
key in form dataIf
store
option is selected as a role,name
field should be appear at least 3 charphone
field should be valid Türkiye phone numbertax_no
field should be appear and it should match the pattern “TXXXXVXXXXXX” ⇒ X can be any numberbank_account
field should be valid IBAN address[x] on Submit it should create a POST request to endpoint
/signup
with form data[x] Data Format
{ name, email, password, role_id }
{ name, email, password, role_id, store: { name, phone, tax_no, bank_account } }
ERROR!