mruz / base-app

The base application in PhalconPHP
63 stars 19 forks source link

This update for password control. #36

Closed cengizcoskun closed 9 years ago

cengizcoskun commented 9 years ago

Password control added.

mruz commented 9 years ago

Is this required? We already have loaded user and just to match password in the $user->password === $password condition:

$user = Users::findFirst(array('username=:username:', 'bind' => array(':username' => $username)));
// ...

if (isset($roles['login']) && $user->password === $password) {
cengizcoskun commented 9 years ago

Ohh sorry. Yes its true.