cross-solution / YAWIK

YAWIK is a web application. It can be used as an ATS applicant tracking system or as a jobboard.
https://yawik.org
MIT License
124 stars 67 forks source link

Register as an logged in user leads to error 403 #147

Closed mbo-s closed 3 years ago

mbo-s commented 9 years ago

Here the user should be redirected to the main page

steps to reproduce

  1. got to http://yawik.org/demo/de
  2. Login
  3. call http://yawik.org/demo/de/auth/register
mbo-s commented 9 years ago

There are more pages that produce the same error, e.g. http://yawik.org/demo/de/auth/forgot-password

cbleek commented 9 years ago

An authenticated user is currently denied to get the registration page because of:

https://github.com/cross-solution/YAWIK/blob/develop/module/Auth/config/module.config.php#L395

Because of this configuration an Exception is thrown. The exception handling is not implemented yet, because we don't know what to do. It probably should be configurable.

mbo-s commented 9 years ago

A similar problem existed with the register form, here the authenticated user will be redirected to the main page and that is common https://github.com/cross-solution/YAWIK/blob/develop/module/Auth/src/Auth/Controller/IndexController.php#L66-L68