register+login with secur ok
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
<body>
|
||||
<div class="login-page">
|
||||
<div class="form">
|
||||
<form class="register-form">
|
||||
<form class="register-form" action="./post.php" method="post">
|
||||
<input type="hidden" name="newUser" value="true">
|
||||
<div class="login">
|
||||
<div for="login"class="userExist infoRules">L'utilisateur existe déja !</div>
|
||||
<div for="login" class="ruleExcept infoRules">le login comporte entre 8 et 16 caractères parmi a..z</div>
|
||||
@@ -19,15 +20,16 @@
|
||||
<div class="pw">
|
||||
<div for"pw" class="infoRules">le mot de passe comporte entre 8 et 16 caractères parmi a..z A..Z 0..9</div>
|
||||
<input type="password" name="pw" placeholder="password"/></div>
|
||||
<div class="pw"><input type="pw2" name="password2" placeholder="password"/></div>
|
||||
<button>create</button>
|
||||
<div class="pw2"><input type="password" name="pw2" placeholder="retape password"/></div>
|
||||
<button class="createUser">create</button>
|
||||
<p class="message">Already registered? <a href="#">Sign In</a></p>
|
||||
</form>
|
||||
<form class="login-form">
|
||||
<input type="text" placeholder="username"/>
|
||||
<input type="password" placeholder="password"/>
|
||||
<form class="login-form" action="./control/login.php" method="post">
|
||||
<input name="login" type="text" placeholder="username"/>
|
||||
<input name="pw" type="password" placeholder="password"/>
|
||||
|
||||
<button>login</button>
|
||||
<button>Enter withouth login</button>
|
||||
<button onclick="window.location.href='?page=table';return false;">Enter withouth login</button>
|
||||
<p class="message">Not registered? <a href="#">Create an account</a></p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
|
||||
<body>
|
||||
<input type="text" id="myInput" onkeyup="myFunction()" placeholder="Search for names..">
|
||||
<input type="hidden" id="slVal" value="{{ session["sl"] }}" />
|
||||
<table id="allRecord">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -13,7 +14,9 @@
|
||||
<th>email</th>
|
||||
<th>PW</th>
|
||||
<th>slvl</th>
|
||||
{% if (session["sl"] == "5" or session["sl"] == "10") %}
|
||||
<th><i class="fas fa-cogs"></i></th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -33,13 +36,17 @@
|
||||
</td>
|
||||
<td class="sl">
|
||||
{{ data["security_level"] }}
|
||||
</td>
|
||||
<td><i class="fas fa-edit click editUser"></i><i class="fas fa-trash-alt click delUser"></i></td>
|
||||
</td>{% if (session["sl"] == "5" or session["sl"] == "10") %}
|
||||
<td>{% if ((session["sl"] == "5" and session["login"] == data["login"]) or session["sl"] == "10") %}
|
||||
<i class="fas fa-edit click editUser"></i><i class="fas fa-trash-alt click delUser"></i>
|
||||
{% endif %}
|
||||
</td>{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% if (session["sl"] == "10") %}
|
||||
<tr rowspan="2">
|
||||
<td colspan="6" style="text-align:center"><i class="fas fa-user-plus fa-4x click"></i></td>
|
||||
</tr>
|
||||
</tr>{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user