oztrkmrt / E-Commerce

https://e-commerce-five-rust.vercel.app
0 stars 0 forks source link

T8: Sign Up User Form Page #2

Closed oztrkmrt closed 2 months ago

oztrkmrt commented 2 months ago
  • [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 field
  • [x] Customer should be selected by default
  • [x] Selected role id should be assigned to role_id key in form data
  • [x] Store Name name field should be appear at least 3 char
  • [x] Store Phone phone field should be valid Türkiye phone number
  • [x] Store Tax ID tax_no field should be appear and it should match the pattern “TXXXXVXXXXXX” ⇒ X can be any number
  • [x] Store Bank Account bank_account field should be valid IBAN address
  • [x] While submitting, there should be a spinner in the Submit button and it should be disabled
  • [x] if submit is successful, it should redirect client to previous page with warning: “You need to click link in email to activate your account!”
  • [x] if submit is not successful, client should be informed about the error staying in the form page
  • [x] Customer & Admin: { name, email, password, role_id }
  • [x] Store: { name, email, password, role_id, store: { name, phone, tax_no, bank_account } }

ERROR!