# HG changeset patch # User Dan # Date 1238898944 14400 # Node ID d6b095673a475dd6f7b2990f6a6ce190a2ae6a0a # Parent 83d180d87f3cc7ec8bda6753e199444e9eb074d5 Session: additional metadata passed back from auth plugins is passed through to client for optional further parsing diff -r 83d180d87f3c -r d6b095673a47 includes/sessions.php --- 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; } } }