[lux commit] r134 - trunk/Lux/Auth/Adapter

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 26, 2008, 1:39:30 AM9/26/08
to lux...@googlegroups.com
Author: rodrigo.moraes
Date: Thu Sep 25 22:39:04 2008
New Revision: 134

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();
}

Reply all
Reply to author
Forward
0 new messages