mtkocak/authake — comment on commit 626bcbd3a93e141ddf59f80877bb80cc1bdcb0be
File:  line 0
By Ahnteis:

In UserController.php I added the non-indented lines.

$next = $this->Authake->getPreviousUrl();
$this->Authake->login($userdata['User']);
$this->Session->setFlash(__('You are logged in as ').$userdata['User']['login'], 'success' , array('plugin'=>'authake'));
if (empty($next)) {
$next = Configure::read('Authake.loggedAction');
}
$this->redirect($next);
}