kentonh / gPanel

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

Clean up authentication checks #56

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

george-e-shaw-iv commented 7 years ago

Severity level (1-10):

3

Files/Directories Involved:

pkg/webhost/webhost.go

Description:

From lines (65) if reqAuth(path) { to (127) } a lot needs cleaned up. I think a lot of those checks could be combined or something.

Personal Comments: