"Fossies" - the Fresh Open Source Software Archive

Member "LinOTP-release-2.11/linotpd/src/linotp/templates/selfservice/register-sms.mako" (12 Nov 2019, 2108 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 <script>
   29     jQuery.validator.addMethod("phone", function(value, element, param){
   30         return value.match(/^[+0-9\/\ ]+$/i);
   31     }, "Please enter a valid phone number. It may only contain numbers and + or /.");
   32 
   33     $('#form_registersms').validate({
   34         rules: {
   35             mobilephone: {
   36                 required: true,
   37                 minlength: 6,
   38                 number: false,
   39                 phone: true
   40             }
   41         }
   42     });
   43 
   44 </script>
   45 
   46 <h1>${_("Register your SMS OTP Token / mobileTAN")}</h1>
   47 <div id='registersmsform'>
   48     <form class="cmxform" id='form_registersms' action="">
   49     <fieldset>
   50         <table>
   51         <tr>
   52         <td><label for=mobilephone>${_("Your mobile phone number")}</label></td>
   53         <td><input id='mobilephone'
   54                     name='mobilephone'
   55                     class="required ui-widget-content ui-corner-all"
   56                     value='${c.phonenumber}'>
   57         </td>
   58         </tr>
   59         <tr>
   60         </table>
   61         <button class='action-button' id='button_register_sms' onclick="register_sms(); return false;">${_("register SMS Token")}</button>
   62     </fieldset>
   63     </form>
   64 </div>
   65