casperiv0 / snaily-cadv3

> https://github.com/SnailyCAD/snaily-cadv4
https://discord.gg/eGnrPqEH7U
MIT License
33 stars 21 forks source link

Turning on secureCookies or setting customHostUrl results in auto redirect back to login after login #239

Open rhys19 opened 3 years ago

rhys19 commented 3 years ago

What version of Node.js are you using?

16.6.1

What version of npm are you using?

7.20.3

What operating system are you using?

Ubuntu

Describe the Bug

If I edit src/config.ts and set secureCookies: false to secureCookies: true it causes the cad to auto redirect back to the login even if you enter the right credentials and the same goes for if you try and set customHostUrl: "domain.com"

I have tried multiple times to get it to work and still have had no such luck I am however using a subdomain

Expected Behavior

to be able to login to the cad.

To Reproduce

go into config.ts and set secureCookies: false to secureCookies: true and then add customHostUrl: "subdomain.domain.com" at the end of databasePort: 3306;