"Fossies" - the Fresh Open Source Software Archive

Member "LinOTP-release-2.11/linotpd/src/linotp/templates/auth-challenge-response.mako" (12 Nov 2019, 3814 Bytes) of package /linux/misc/LinOTP-release-2.11.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML source code (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 <%doc>
    3  *
    4  *   LinOTP - the open source solution for two factor authentication
    5  *   Copyright (C) 2010 - 2019 KeyIdentity GmbH
    6  *
    7  *   This file is part of LinOTP server.
    8  *
    9  *   This program is free software: you can redistribute it and/or
   10  *   modify it under the terms of the GNU Affero General Public
   11  *   License, version 3, as published by the Free Software Foundation.
   12  *
   13  *   This program is distributed in the hope that it will be useful,
   14  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
   15  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16  *   GNU Affero General Public License for more details.
   17  *
   18  *   You should have received a copy of the
   19  *              GNU Affero General Public License
   20  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
   21  *
   22  *
   23  *    E-mail: linotp@keyidentity.com
   24  *    Contact: www.linotp.org
   25  *    Support: www.keyidentity.com
   26  *
   27 </%doc>
   28 
   29 <%block name="title">
   30         <title>LinOTP Challenge Response testing</title>
   31 </%block>
   32 
   33 <%inherit file="auth-base.mako"/>
   34 
   35 <div id="sidebar">
   36     <p>${_("Here you may try to authenticate using a token in challenge response mode.")}</p>
   37     <p>${_('Enter your username and OTP PIN to trigger a challenge and submit the OTP value after you recieved it.')}</p>
   38 </div> <!-- sidebar -->
   39 
   40 <div id="main">
   41 <h1>${_('Challenge Response Login')}</h1>
   42 <div id='auth' class="challenge-response">
   43     <table>
   44         <tr>
   45             <td>
   46                 <form class="cmxform" id="form_challenge_trigger" method="post" action="">
   47                     <frameset name=login>
   48                         <table>
   49                             <tr>
   50                                 <td><h2>${_('Create challenge:')}</h2></td>
   51                             </tr>
   52                             <tr>
   53                                 <td>${_('username')}</td>
   54                                 <td><input type='text' id='user' name="user"   class="required"></td>
   55                             </tr>
   56                             <tr>
   57                                 <td>${_('OTP PIN')}</td>
   58                                 <td><input type='password' id='pin' name="pin"   class="required"></td>
   59                             </tr>
   60                             <tr>
   61                                 <td> </td>
   62                                 <td><input type="submit" value="${_('trigger')}"></td>
   63                             </tr>
   64                         </table>
   65                     </frameset>
   66                 </form>
   67             </td>
   68         </tr>
   69         <tr>
   70             <td>
   71                 <form class="cmxform"  id="form_challenge_submit" method="post" action="">
   72                     <frameset name=login>
   73                         <table>
   74                             <tr>
   75                                 <td><h2>${_('Submit response:')}</h2></td>
   76                             </tr>
   77                             <tr>
   78                                 <td>${_('Transaction-ID')}</td>
   79                                 <td><input type='text' id='transactionid' name="transactionid"   class="required"></td>
   80                             </tr>
   81                             <tr>
   82                                 <td>${_('OTP value')}</td>
   83                                 <td><input type="text" autocomplete="off" name="otp" id="otp" class=required></td>
   84                             </tr>
   85                             <tr>
   86                                 <td> </td>
   87                                 <td><input type="submit" value="${_('submit')}"></td>
   88                             </tr>
   89                         </table>
   90                     </frameset>
   91                 </form>
   92             </td>
   93         </tr>
   94     </table>
   95 </div>
   96 <div id='errorDiv'> </div>
   97 <div id='successDiv'> </div>
   98 </div>  <!-- end of main-->