求救cakePHP 验证组件Auth的用法
以下是我在网上搜寻到的用法,但是不知怎么使用~这个验证的机制是什么
$this->Auth->fields = array('username' => 'email', 'password' => 'password');
Auth->fields这个方法的两个参数都是什么意思啊,是用来在什么时候做怎样的验证来使用的,使用的时候需要注意哪些问题。
还有,哪里有关于Auth的函数的详细说明文档吗?
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'myprofile');
$this->Auth->logoutRedirect = '/';
$this->Auth->loginError = 'Invalid e-mail / password combination. Please try again';
$this->Auth->authorize = 'controller';