horizon-ui / shadcn-nextjs-boilerplate

Shadcn UI NextJS Boilerplate ⚡️ Free Open-source ChatGPT UI Admin Dashboard Template - Horizon AI Boilerplate
https://horizon-ui.com/shadcn-nextjs-boilerplate
MIT License
334 stars 98 forks source link

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

Open ssukru opened 1 day ago

ssukru commented 1 day ago

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 commented 1 day ago

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"
});