includes/sessions.php
changeset 895 d6b095673a47
parent 857 f3a5a276208c
child 897 f31c252c52c1
--- a/includes/sessions.php	Sat Apr 04 22:34:56 2009 -0400
+++ b/includes/sessions.php	Sat Apr 04 22:35:44 2009 -0400
@@ -4023,12 +4023,19 @@
           {
             if ( isset($result['mode']) && $result['mode'] === 'error' && isset($result['error']) )
             {
-              return array(
+              // Pass back any additional information from the error response
+              $append = $result;
+              unset($append['mode'], $append['error']);
+              
+              $return = array(
                 'mode' => 'login_failure',
                 'error_code' => $result['error'],
                 // Use this to provide a way to respawn the login box
                 'respawn_info' => $this->process_login_request(array('mode' => 'getkey'))
               );
+              
+              $return = array_merge($append, $return);
+              return $return;
             }
           }
         }