noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
noalyss_user-input_otp.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19*/
20// Copyright Author Dany De Bontridder danydb@aevalys.eu 22/10/23
21
22
23/**
24 * @file
25 * @brief input the 6 digit
26 */
27/**
28 * var $this (Noalyss_User)
29 */
30global $g_user;
32
33// $uuid is set only when a message with the code
35if ( $uuid != "")
36{
37 $request=new IHidden("rq", $uuid);
38 $str=$request->input();
39}
40
41$date=new \DateTime();
42
43?>
44<style>
45
46/***
47 * LOGO
48*************************************/
49#logo_id {
50 position:static;
51 top : 0px;
52 left:0px;
53 width:60px;
54 height:auto;
55 margin-left:10px;
56}
57/** small **/
58@media (min-width : 576px) {
59 #logo_id {
60 top : 10px;
61 left:20px;
62 width: 90px;
63 margin-left:20px;
64
65
66 }
67}
68/** medium**/
69@media (min-width : 768px) {
70 #logo_id {
71
72 }
73
74}
75/** large**/
76@media (min-width : 992px) {
77 #logo_id {
78
79 }
80}
81/** XL **/
82@media (min-width : 1200px) {
83 #logo_id {
84
85
86 }
87}
88div.content {
89
90}
91@media (min-width: 576px) {
92 div.content {
93 margin-left: 16px;
94 }
95}
96/* MeDium */
97@media (min-width: 768px) {
98 div.content {
99 margin-left: 32px;
100 }
101}
102/* LarGe */
103@media (min-width: 992px) {
104 div.content {
105 margin-left: 64px;
106 }
107}
108/* eXtraLarge */
109@media (min-width: 1200px) {
110 div.content {
111 margin-left: 128px;
112 }
113
114}
115#vrf_code {
116 font-size:200%;
117 width:9rem;
118 padding:0.5rem;
119}
120
121input[type=submit]{
122 font-size:200%;
123 width:9rem;
124 padding:0.5rem;
125}
126form {
127 width:70%;
128 margin-left:15%;
129}
130</style>
131 <img id="logo_id" src="image/logo10000.png" >
132<div class="content">
133 <h1>Double authentification</h1>
134 <p>
135 Date :
136 <?=$date->format('d/m/Y h:i')?>
137 </p>
138 <p>
139 Entrez le code que vous avez reçu par email ou sur votre application OTP.
140 </p>
141 <p>
142 Rafraichissez la page pour recevoir un nouveau code.
143 </p>
144 <FORM method="post" action="login.php" >
145 <input type="text" placeholder="999999" id="vrf_code" name="vrf_code" autocomplete="off" autofocus>
146 <input type="hidden" name="auth" value="to_validate" >
147 <?=$str?>
148 <input type="hidden" name="backurl" value="<?=$url?>">
149 <p>
150 <input type="submit" value="valider">
151
152 </p>
153
154 </FORM>
155</div>
p($p_string, $p_extra='')
Definition ac_common.php:39
h1($p_string, $p_class="")
Definition ac_common.php:72
global $g_user
if no group available , then stop
$opd_description style
$name size
$from_poste name
$input_from type
Html Input.
$anc_filter placeholder
$desc width