2 回答数
0 投票数
Auth component, redirect as per user group to different page
Hi bakers,
I have an application that uses Auth component for login. After successful login, depending on the user role, he will be redirected to the respective page. currently there are 3 different roles and page for each role.
When i logout from...
1 回答数
0 投票数
loginRedirect for multiple roles
Hi all,
I am building an application with three different roles.
Everytime a user logs in, we take its group number and we redirect it using a different route. To implement this I coded in /app/app_controller.php:
if... 0 回答数
0 投票数
Wrong redirect on invalid login with multiple login pages
I have two separate login pages (/users/login and /some_controller/index) both of which correctly redirect to the user account page (/users/index). However, if there is an invalid login (wrong password etc), /some_controller/index will redirect...
1 回答数
0 投票数
1 回答数
0 投票数
1 回答数
0 投票数
loginRedirect with session data?!
Hi,
I use AuthComponent and I use loginRedirect property. I have the following problem:
class AppController extends Controller {
var $components = array('Session','Auth');
function beforeFilter() {
parent::beforeFilter();
$u =... 





