Skip to content
Snippets Groups Projects
Commit b780bc53 authored by Hanne Moa's avatar Hanne Moa
Browse files

Split logic and data for authYubiKey-module

For: #454
parent 4d5a3d46
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,8 @@ if ($this->data['errorcode'] !== NULL) {
}
?>
<img style="float: right" src="<?php echo(SimpleSAML\Module::getModuleURL('authYubiKey/resources/logo.jpg')); ?>" alt="" />
<img style="clear: right; float: right" src="<?php echo(SimpleSAML\Module::getModuleURL('authYubiKey/resources/yubikey.jpg')); ?>" alt="YubiKey" />
<img style="float: right" src="<?php echo($this->data['logo_url']); ?>" alt="" />
<img style="clear: right; float: right" src="<?php echo($this->data['devicepic_url']); ?>" alt="YubiKey" />
<h2 style=""><?php echo $this->t('{authYubiKey:yubikey:header}'); ?></h2>
......
......@@ -31,5 +31,7 @@ $globalConfig = SimpleSAML_Configuration::getInstance();
$t = new SimpleSAML_XHTML_Template($globalConfig, 'authYubiKey:yubikeylogin.php');
$t->data['stateparams'] = array('AuthState' => $authStateId);
$t->data['errorcode'] = $errorCode;
$t->data['logo_url'] = SimpleSAML\Module::getModuleURL('authYubiKey/resources/logo.jpg');
$t->data['devicepic_url'] = SimpleSAML\Module::getModuleURL('authYubiKey/resources/yubikey.jpg')
$t->show();
exit();
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