Zend Framework

Zend_Auth_Adapter_OpenId example error

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.6.0
  • Labels:
    None
  • Language:
    English

Description

Hi,

On: http://framework.zend.com/manual/en/zend.auth.adapter.openid.html

The example contains the following:

if (!$result->isValid()) { $status = "You are logged-in as " . $auth->getIdentity() . "<br>\n"; } else {
$auth->clearIdentity();
foreach ($result->getMessages() as $message) { $status .= "$message<br>\n"; }
}

However this has a negation in the wrong place. To work it need to be:

if ($result->isValid()) { $status = "You are logged-in as " . $auth->getIdentity() . "<br>n"; } } else {
$auth->clearIdentity();
foreach ($result->getMessages() as $message) { $status .= "$message<br>\n"; }
}

Note removal of ! in outer if statement.

Activity

Hide
Wil Sinclair added a comment -

Updating for the 1.6.0 release.

Show
Wil Sinclair added a comment - Updating for the 1.6.0 release.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: