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

BUG: empty email + password allowed on sign in page #4

Open
ssukru opened this issue Nov 22, 2024 · 1 comment
Open

BUG: empty email + password allowed on sign in page #4

ssukru opened this issue Nov 22, 2024 · 1 comment

Comments

@ssukru
Copy link

ssukru commented Nov 22, 2024

on https://horizon-ui.com/shadcn-nextjs-boilerplate/dashboard:

I can click "Sign In" button without entering anything into fields and no error message is shown.
and also, "Sign In" button remains in loading state infinitely.

fetch("https://horizon-ui.com/shadcn-nextjs-boilerplate/dashboard/signin/password_signin", {
  "headers": {
    "accept": "text/x-component",
    "accept-language": "en-US,en;q=0.9,tr;q=0.8",
    "content-type": "multipart/form-data; boundary=----WebKitFormBoundarypU6XXwUq9YVYwrne",
    "next-action": "ffd091b86bc49733798c9f7b0e6e4e7a3e2dba37",
    "next-router-state-tree": "%5B%22%22%2C%7B%22children%22%3A%5B%22dashboard%22%2C%7B%22children%22%3A%5B%22signin%22%2C%7B%22children%22%3A%5B%5B%22id%22%2C%22password_signin%22%2C%22d%22%5D%2C%7B%22children%22%3A%5B%22__PAGE__%22%2C%7B%7D%2C%22%2Fshadcn-nextjs-boilerplate%2Fdashboard%2Fsignin%2Fpassword_signin%22%2C%22refresh%22%5D%7D%5D%7D%5D%7D%5D%7D%2Cnull%2Cnull%2Ctrue%5D",
    "priority": "u=1, i",
    "sec-ch-ua": "\"Not?A_Brand\";v=\"99\", \"Chromium\";v=\"130\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://horizon-ui.com/shadcn-nextjs-boilerplate/dashboard/signin/password_signin",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "------WebKitFormBoundarypU6XXwUq9YVYwrne\r\nContent-Disposition: form-data; name=\"1_email\"\r\n\r\n\r\n------WebKitFormBoundarypU6XXwUq9YVYwrne\r\nContent-Disposition: form-data; name=\"1_password\"\r\n\r\n\r\n------WebKitFormBoundarypU6XXwUq9YVYwrne\r\nContent-Disposition: form-data; name=\"0\"\r\n\r\n[\"$K1\"]\r\n------WebKitFormBoundarypU6XXwUq9YVYwrne--\r\n",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
@ssukru
Copy link
Author

ssukru commented Nov 22, 2024

same applies to sign up page as well.

in case if it helps:

fetch("https://horizon-ui.com/shadcn-nextjs-boilerplate/dashboard/signin/signup", {
  "headers": {
    "accept": "text/x-component",
    "accept-language": "en-US,en;q=0.9,tr;q=0.8",
    "content-type": "multipart/form-data; boundary=----WebKitFormBoundaryb4z4R7C696VAZkDV",
    "next-action": "e76d21a1f43adce58ea455b1040ece10706604bb",
    "next-router-state-tree": "%5B%22%22%2C%7B%22children%22%3A%5B%22dashboard%22%2C%7B%22children%22%3A%5B%22signin%22%2C%7B%22children%22%3A%5B%5B%22id%22%2C%22signup%22%2C%22d%22%5D%2C%7B%22children%22%3A%5B%22__PAGE__%22%2C%7B%7D%2C%22%2Fshadcn-nextjs-boilerplate%2Fdashboard%2Fsignin%2Fsignup%22%2C%22refresh%22%5D%7D%5D%7D%5D%7D%5D%7D%2Cnull%2Cnull%2Ctrue%5D",
    "priority": "u=1, i",
    "sec-ch-ua": "\"Not?A_Brand\";v=\"99\", \"Chromium\";v=\"130\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://horizon-ui.com/shadcn-nextjs-boilerplate/dashboard/signin/signup",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "------WebKitFormBoundaryb4z4R7C696VAZkDV\r\nContent-Disposition: form-data; name=\"1_email\"\r\n\r\n\r\n------WebKitFormBoundaryb4z4R7C696VAZkDV\r\nContent-Disposition: form-data; name=\"1_password\"\r\n\r\n\r\n------WebKitFormBoundaryb4z4R7C696VAZkDV\r\nContent-Disposition: form-data; name=\"0\"\r\n\r\n[\"$K1\"]\r\n------WebKitFormBoundaryb4z4R7C696VAZkDV--\r\n",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant