public static function checkCredential($login, $password)
    {
        $account = User_Account::getUser($login);
        $credit = new User_Credential();
        $credit = $credit->getOne("account_id=" . $account->id);
        if(!$credit){
            return false;
        }
        return $credit->checkPassword($password);
    }
public static function checkCredential($login, $password)
    {
        $account = User_Account::getUser($login);
        $credit = new User_Credential();
        $credit = $credit->getOne("account_id=" . $account->id);
        if(!$credit){
            return false;
        }
        return $credit->checkPassword($password);
    }
public static function checkCredential ( $ login , $ password ) { $ account = User_Account :: getUser ( $ login ) ; $ credit = new User_Credential ( ) ; $ credit = $ credit -> getOne ( "account_id=" . $ account -> id ) ; if ( ! $ credit ) { return false ; } return $ credit -> checkPassword ( $ password ) ; }
Check if the login creditential is valid.

@param
string Login
@param
string Password
@return boolean True if password is correct for given login else returns false
Check if the login creditential is valid .