Commit c0123b5a authored by Xavier Guimard's avatar Xavier Guimard

2F choice in progress (#1148)

parent 82299131
......@@ -132,9 +132,7 @@ sub run {
params => {
SKIN => $self->conf->{portalSkin},
TOKEN => $token,
MODULES => JSON::to_json(
[ map { { code => $_->prefix, logo => $_->logo } } @am ]
),
MODULES => [ map { { CODE => $_->prefix, LOGO => $_->logo } } @am ],
}
);
return PE_OK;
......
package Lemonldap::NG::Portal::2F::External2F;
package Lemonldap::NG::Portal::2F::Ext2F;
use strict;
use Mouse;
......
<TMPL_INCLUDE NAME="header.tpl">
<div class="container">
<div class="message message-positive alert" trspan="choose2f"></div>
<div class="buttons">
<form action="/2fchoice" method="POST">
<input type="hidden" name="token" id="token" value="<TMPL_VAR NAME="TOKEN">" />
<TMPL_LOOP NAME="MODULES">
<button type="submit" name="sf" value="<TMPL_VAR NAME="CODE">">
<img src="<TMPL_VAR NAME="STATIC_PREFIX"><TMPL_VAR NAME="SKIN">/<TMPL_VAR NAME="LOGO">" />
</button>
</TMPL_LOOP>
</form>
</div>
</div>
<div class="buttons">
<a href="<TMPL_VAR NAME="PORTAL_URL">" class="btn btn-primary" role="button">
<span class="glyphicon glyphicon-home"></span>&nbsp;
<span trspan="goToPortal">Go to portal</span>
</a>
</div>
<TMPL_INCLUDE NAME="footer.tpl">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment