RT-Extension-TOTPMFA
view release on metacpan or search on metacpan
html/Callbacks/TOTPMFA/Admin/Users/Modify.html/LeftColumnBottom view on Meta::CPAN
</%ARGS>
\
<%INIT>
return if (not $UserObj);
return if (not $UserObj->Id);
return if (not $UserObj->Privileged);
my $Settings = RT::Extension::TOTPMFA::UserSettings($UserObj);
</%INIT>
\
<&| /Widgets/TitleBox, title => loc('Multi-factor authentication'), id => "user-prefs-totpmfa" &>
<& /Elements/TOTPMFATypeSelector, Settings => $Settings &>
</&>
html/Callbacks/TOTPMFA/Prefs/Elements/EditAboutMe/FormRightColumn view on Meta::CPAN
\
<%INIT>
return if (not $UserObj);
return if (not $UserObj->Id);
return if (not $UserObj->Privileged);
my $Settings = RT::Extension::TOTPMFA::UserSettings($UserObj);
my $Digits = RT->Config->Get('TOTPMFA_Digits') || 6;
</%INIT>
\
<&| /Widgets/TitleBox, title => loc('Multi-factor authentication'), id => "user-prefs-totpmfa" &>
<& /Elements/TOTPMFATypeSelector, Settings => $Settings &>
<div class="form-row">
<div class="label col-3"><&|/l&>Register with TOTP app</&>:</div>
% my $qrcode_url = RT->Config->Get('WebPath') ."/Helpers/TOTPMFA";
<div class="value col-9"><b><a id="get_totp_qrcode" href="TOTPMFA.png"><&|/l&>Click to view QR code</&></a></b><img id="totp_qrcode"></img></div>
<script type="text/javascript">
jQuery(function () {
jQuery('#get_totp_qrcode').on('click', function () {
jQuery.get(<% $qrcode_url |n,j %>, function (data) {
jQuery('#totp_qrcode').attr("src", "data:image/png;base64," + data);
( run in 1.936 second using v1.01-cache-2.11-cpan-8f98c5d2c55 )