Skip to content
Snippets Groups Projects
Commit c4e341e4 authored by Olav Morken's avatar Olav Morken
Browse files

authX509: Make the authFailed-function work.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2437 44740490-163a-0410-bde0-09ae8108e29a
parent 8b246e50
No related branches found
No related tags found
No related merge requests found
...@@ -97,13 +97,10 @@ class sspmod_authX509_Auth_Source_X509userCert extends SimpleSAML_Auth_Source { ...@@ -97,13 +97,10 @@ class sspmod_authX509_Auth_Source_X509userCert extends SimpleSAML_Auth_Source {
* @param array &$state Information about the current authentication. * @param array &$state Information about the current authentication.
*/ */
public function authFailed(&$state) { public function authFailed(&$state) {
$id = SimpleSAML_Auth_State::saveState($state, self::STAGEID);
$params = array('AuthState' => $id);
$config = SimpleSAML_Configuration::getInstance(); $config = SimpleSAML_Configuration::getInstance();
$t = new SimpleSAML_XHTML_Template($config, $t = new SimpleSAML_XHTML_Template($config,
'authX509:X509error.php'); 'authX509:X509error.php');
$t->data['stateparams'] = $params;
$t->data['errorcode'] = $state['authX509.error']; $t->data['errorcode'] = $state['authX509.error'];
$t->show(); $t->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment