Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About v0t

  • Rank
  1. Ok, i'm sorry guys. I solved the problem, debugger confused me and i found that the problem is in md5 matching. Sorry for wasting your time v0t
  2. Hi all! I started using Yii and I'm trying to authenticate users by db table from login form, but i'm getting in trouble with find() function. This is my UserIdentity's class: private $_id; public function authenticate() { $username = strtolower($this->username); $record=User::model()->find('LOWER(username)=?',array($username)); if($record===null) $this->errorCode=self::ERROR_USERNAME_INVALID; else if($record->password!==md5($this->password)) $this->errorCode=self::ERROR_PASSWORD_INVALID; else { $this->_id=$record->id;
  • Create New...