[Fusionforge-commits] r12810 - in trunk/src/plugins: authbuiltin/www authhttpd/www authldap/www

Roland Mas lolando at fusionforge.org
Wed Mar 16 22:01:14 CET 2011


Author: lolando
Date: 2011-03-16 22:01:14 +0100 (Wed, 16 Mar 2011)
New Revision: 12810

Modified:
   trunk/src/plugins/authbuiltin/www/post-login.php
   trunk/src/plugins/authhttpd/www/post-login.php
   trunk/src/plugins/authldap/www/post-login.php
Log:
Various fixes to login pages

Modified: trunk/src/plugins/authbuiltin/www/post-login.php
===================================================================
--- trunk/src/plugins/authbuiltin/www/post-login.php	2011-03-16 21:00:58 UTC (rev 12809)
+++ trunk/src/plugins/authbuiltin/www/post-login.php	2011-03-16 21:01:14 UTC (rev 12810)
@@ -73,8 +73,7 @@
 	if (!form_key_is_valid(getStringFromRequest('form_key'))) {
 		exit_form_double_submit();
 	}
-	$success = session_check_credentials_in_database(strtolower($form_loginname),$form_pw,false);
-	if ($success) {
+	if (session_check_credentials_in_database(strtolower($form_loginname),$form_pw,false)) {
 		if ($plugin->isSufficient()) {
 			$plugin->startSession($form_loginname);
 		}
@@ -97,7 +96,7 @@
 
 $HTML->header(array('title'=>'Login'));
 
-if ($login && !$success) {
+if ($login) {
 	form_release_key(getStringFromRequest('form_key'));	
 	// Account Pending
 	if (!isset($userstatus)) {

Modified: trunk/src/plugins/authhttpd/www/post-login.php
===================================================================
--- trunk/src/plugins/authhttpd/www/post-login.php	2011-03-16 21:00:58 UTC (rev 12809)
+++ trunk/src/plugins/authhttpd/www/post-login.php	2011-03-16 21:01:14 UTC (rev 12810)
@@ -35,7 +35,7 @@
 require_once $gfcommon.'include/pre.php';
 require_once('../../../www/include/login-form.php');
 
-$plugin = plugin_get_object('authcas');
+$plugin = plugin_get_object('authhttpd');
 
 $return_to = getStringFromRequest('return_to');
 $login = getStringFromRequest('login');

Modified: trunk/src/plugins/authldap/www/post-login.php
===================================================================
--- trunk/src/plugins/authldap/www/post-login.php	2011-03-16 21:00:58 UTC (rev 12809)
+++ trunk/src/plugins/authldap/www/post-login.php	2011-03-16 21:01:14 UTC (rev 12810)
@@ -98,7 +98,7 @@
 
 $HTML->header(array('title'=>'Login'));
 
-if ($login && !$success) {
+if ($login) {
 	form_release_key(getStringFromRequest('form_key'));	
 	// Account Pending
 	if (!isset($userstatus)) {




More information about the Fusionforge-commits mailing list