public function updatePassword($username, $password)
    {
        /** @var UserInterface|EloquentUser $user */
        if ( ! ($user = $this->sentinel->findByCredentials(['email' => $username]))) {
            return false;
        }

        return $this->sentinel->update($user, ['password' => $password]) instanceof UserInterface;
    }
public function updatePassword($username, $password)
    {
        /** @var UserInterface|EloquentUser $user */
        if ( ! ($user = $this->sentinel->findByCredentials(['email' => $username]))) {
            return false;
        }

        return $this->sentinel->update($user, ['password' => $password]) instanceof UserInterface;
    }
public function updatePassword ( $ username , $ password ) { /** @var UserInterface|EloquentUser $user */ if ( ! ( $ user = $ this -> sentinel -> findByCredentials ( [ 'email' => $ username ] ) ) ) { return false ; } return $ this -> sentinel -> update ( $ user , [ 'password' => $ password ] ) instanceof UserInterface ; }
Sets a new password for an existing CMS user.

@param string $username
@param string $password
@return bool
Sets a new password for an existing CMS user .