OrigamiStructures / StudioManagerScratch

A place to push around some experimental code
0 stars 0 forks source link

Login not functioning #151

Closed curlyjason closed 4 years ago

curlyjason commented 5 years ago

When attempting to login, I get a badly formed class exception. The workaround is to turn off lines 144 - 146 in AppController, removing the creation of a CurrentUser object from the Auth User. This code can be turned back on once I am logged in.

curlyjason commented 5 years ago

Potentially, check if there is a logged in user, and send the user to the login page if that is not true. Also need to protect the login and logout pages from this routine.

curlyjason commented 5 years ago

Made a fix in AppController::currentUser() to guard against the lack of an Auth user. This has solved the problem in the moment, but will need review when testing / establishing user management.

dreamingmind commented 4 years ago

working now