Issues

ZF-3277: Zend_Auth_Adapter_OpenId example error

Issue Type: Docs: Problem Created: 2008-05-16T10:37:04.000+0000 Last Updated: 2008-09-02T10:39:37.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Al James (al.james) Assignee: Dmitry Stogov (dmitry) Tags: - Zend_Auth_Adapter_OpenId

Related issues: Attachments:

Description

Hi,

On: http://framework.zend.com/manual/en/…

The example contains the following:

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

Note removal of ! in outer if statement.

Comments

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:37.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts