Modified:
trunk/Lux/Auth/Adapter/Psql.php
Log:
Updated comments.
Modified: trunk/Lux/Auth/Adapter/Psql.php
==============================================================================
--- trunk/Lux/Auth/Adapter/Psql.php (original)
+++ trunk/Lux/Auth/Adapter/Psql.php Thu Sep 25 22:39:04 2008
@@ -131,22 +131,22 @@
return;
}
- // if current auth **is not** valid, process login attempts
if (! $this->isValid()) {
+ // current auth **is not** valid: process login attempts
if ($this->isLoginRequest()) {
+ // normal login request
$this->processLogin();
if ($this->isValid()) {
- // was a valid login, attempt to redirect.
+ // login is valid: attempt to redirect.
$this->_redirect();
}
} else {
- // if current auth **is not** valid and
- // this is not a login attempt, try to login with cookie
+ // this is not a login request: try to login with cookie
$this->_processCookieLogin();
}
} elseif ($this->isLogoutRequest()) {
- // if current auth **is** valid,
- // process logout attempts, and redirect if requested.
+ // current auth **is** valid and logout is requested:
+ // process logout attempts
$this->processLogout();
$this->_redirect();
}