public function updatePasswordByEmail($email, $password)
    {
        // Retrieve user by e-mail
        $user = $this->authModel->where('email', '=', $email)->first();

        if (empty($user)) {
            return false;
        }

        $user->password = $password;

        // Update user with new password
        return (bool) $user->update();
    }
public function updatePasswordByEmail($email, $password)
    {
        // Retrieve user by e-mail
        $user = $this->authModel->where('email', '=', $email)->first();

        if (empty($user)) {
            return false;
        }

        $user->password = $password;

        // Update user with new password
        return (bool) $user->update();
    }
public function updatePasswordByEmail ( $ email , $ password ) { // Retrieve user by e-mail $ user = $ this -> authModel -> where ( 'email' , '=' , $ email ) -> first ( ) ; if ( empty ( $ user ) ) { return false ; } $ user -> password = $ password ; // Update user with new password return ( bool ) $ user -> update ( ) ; }
Update user's password by e-mail.

@author Morten Rugaard <moru@nodes.dk>

@param  string $email
@param  string $password
@return bool
Update user s password by e - mail .