Community Auth Learning... |
(11-14-2015, 07:34 PM)solidcodes Wrote: Okay I open the login_form.php Look at your routes. By default, Community Auth has a route that masks the actual controller/method used to login. PHP Code: $route[LOGIN_PAGE] = 'examples/login'; AND the LOGIN_PAGE constant is defined in application/hooks/auth_constants.php PHP Code: define('LOGIN_PAGE', 'login'); So what this means is that somebody would think that you have a login controller, yes? No. You are masking the true controller/method, which is located at examples/login. By the way, if you try to access examples/login directly, it should give you a 404. Why this masking? This feature was implemented at a time when I had some WordPress sites that were getting hammered by brute force attacks. The host recommended changing the login URL, and so this concept was born. Community Auth allows you to change the login URL (as well as make supplemental login URLs), and change them anytime you want, to anything you want. Imagine "/log/in/to/my/website", or anything you wish. |
Welcome Guest, Not a member yet? Register Sign In |