kentonh / gPanel

A web-hosting control panel written in Go.
MIT License
80 stars 25 forks source link

Redirect from account/server indexes into panel if cookie is already set #81

Closed george-e-shaw-iv closed 6 years ago

george-e-shaw-iv commented 6 years ago

Severity level (1-10):

2

Files/Directories Involved:

account/index.html server/document_root/index.html

Description:

If the cookie for either of the panels are set they should redirect into the panel if the index is accessed.

Personal Comments:

This will probably have to be done with Javascript reading cookies which for some reason I always find challenging in terms of cross-browser support.

george-e-shaw-iv commented 6 years ago

Realized this issue was better suited for a backend fix and not a front end fix because what if the cookie did exist but it had an invalid JWT token. Until the cookie expired/was deleted it would disallow you from attempting to login.