Yii----登录主件

来源:互联网 发布:怎么区分淘宝是否正品 编辑:程序博客网 时间:2024/05/18 02:43
<?php1. admin/components/UserIdentity.php/Manager::(修改名)      #增加验证主件2. LoginForm.php rules(), authenticate()                    #增加LoginForm3. ManagerController.php login(), logout()4. Manager.php model(), tableName()                         #所LoginForm联用#如密码要加密:先收集后判断1.UserController: $_POST['User']['password'] = md5($_POST['User']['password']);$_POST['User']['password2'] = md5($_POST['User']['password2']);2.UserIdentity.phpauthenticate() else if ($user_model->password !== md5($this->password))

0 0
原创粉丝点击