public function verifyCredentials($sIdentifier, $sPassword)
    {
        //  Look up the user, how we do so depends on the login mode that the app is using
        $oUserModel     = Factory::model('User', 'nails/module-auth');
        $oPasswordModel = Factory::model('UserPassword', 'nails/module-auth');
        $oUser          = $oUserModel->getByIdentifier($sIdentifier);

        return !empty($oUser) ? $oPasswordModel->isCorrect($oUser->id, $sPassword) : false;
    }
public function verifyCredentials($sIdentifier, $sPassword)
    {
        //  Look up the user, how we do so depends on the login mode that the app is using
        $oUserModel     = Factory::model('User', 'nails/module-auth');
        $oPasswordModel = Factory::model('UserPassword', 'nails/module-auth');
        $oUser          = $oUserModel->getByIdentifier($sIdentifier);

        return !empty($oUser) ? $oPasswordModel->isCorrect($oUser->id, $sPassword) : false;
    }
public function verifyCredentials ( $ sIdentifier , $ sPassword ) { //  Look up the user, how we do so depends on the login mode that the app is using $ oUserModel = Factory :: model ( 'User' , 'nails/module-auth' ) ; $ oPasswordModel = Factory :: model ( 'UserPassword' , 'nails/module-auth' ) ; $ oUser = $ oUserModel -> getByIdentifier ( $ sIdentifier ) ; return ! empty ( $ oUser ) ? $ oPasswordModel -> isCorrect ( $ oUser -> id , $ sPassword ) : false ; }
Verifies a user's login credentials

@param  string $sIdentifier The identifier to use for the lookup
@param  string $sPassword   The user's password

@return boolean
Verifies a user s login credentials