srchub-old

srchub-old Commit Details


Date:2014-03-09 22:40:00 (11 years 1 month ago)
Author:Natalie Adams
Branch:default
Commit:2edaca00bc79
Parents: 91cebee6b04d
Message:Adding file for new syntax highlighter

changing OTP url for QR code creation
Changes:
Mindefero/src/IDF/Template/MarkdownPrefilter.php (1 diff)
Mindefero/src/IDF/templates/idf/user/myaccount.html (2 diffs)

File differences

indefero/src/IDF/Template/MarkdownPrefilter.php
101101
102102
103103
104
104105
105106
106107
                            'caption' => array('class', 'dir', 'id', 'style', 'title',
                                               'align'), // deprecated attribute),
                            'code' => array('class', 'dir', 'id', 'style', 'title'),
                            'script' => array('type', 'class', 'dir', 'id', 'style', 'title'),
                            'dd' => array('class', 'dir', 'id', 'style', 'title'),
                            'del' => array('class', 'dir', 'id', 'style', 'title',
                                           'cite', 'datetime'),
indefero/src/IDF/templates/idf/user/myaccount.html
181181
182182
183183
184
184
185185
186186
187187
......
194194
195195
196196
197
197
198198
199199
200200
201201
202202
203
203
204204
205205
206206
    {
        if ($("#id_otpkey").val() != "")
        {
            var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val() + "%26issuer=srchub&choe=UTF-8";
            var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2Fsrchub:" + user + "?secret=" + $("#id_otpkey").val() + "%26issuer=srchub&choe=UTF-8";
            $("#QRcode").html('<img src="' + url + '" />');
        } else {
            $("#QRcode").html('');
        for(var i = 0; i < 32; i++)
            key += chars[Math.floor(Math.random() * 32)];
        $("#id_otpkey").val(key);
        var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8";
        var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%srchub:" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8";
        $("#QRcode").html('<img src="' + url + '" />')
        return false;
    });
    if ($("#id_otpkey").val() != "")
    {
        var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2F" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8";
        var url = "https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=otpauth%3A%2F%2Ftotp%2Fsrchub:" + user + "?secret=" + $("#id_otpkey").val().toUpperCase() + "%26issuer=srchub&choe=UTF-8";
        $("#QRcode").html('<img src="' + url + '" />')
    }
});{/literal}

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 1.85535s using 14 queries.