MAPG-151 add some client side input checks
This commit is contained in:
1 parent
50c7e3972c
commit
e014bf9dc1
3 files changed
+7
-7
No files matched your search
+2
-2
@@ -9,8 +9,8 @@ $jsFiles = [
|
||||
<h2>Login</h2>
|
||||
<div class="box">
|
||||
<form id="loginForm" action="/login" method="post">
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password">
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" required autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password" required minlength="6">
|
||||
<p id="loginFormError" class="formError justify marginTop"></p>
|
||||
<div class="right marginTop">
|
||||
<button type="submit">Login</button>
|
||||
|
||||
+2
-2
@@ -11,8 +11,8 @@ $jsFiles = [
|
||||
<form id="profileForm" action="/profile" method="post">
|
||||
<?php /* TODO: disabled for the time being, email modification should be implemented */ ?>
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" value="<?= $user['email'] ?>" disabled>
|
||||
<input class="big fullWidth marginTop" type="password" name="password_new" placeholder="New password" autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password_new_confirm" placeholder="New password confirmation">
|
||||
<input class="big fullWidth marginTop" type="password" name="password_new" placeholder="New password" minlength="6" autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password_new_confirm" placeholder="New password confirmation" minlength="6">
|
||||
<hr>
|
||||
<input class="big fullWidth" type="password" name="password" placeholder="Current password">
|
||||
<p id="profileFormError" class="formError justify marginTop"></p>
|
||||
|
||||
@@ -9,9 +9,9 @@ $jsFiles = [
|
||||
<h2>Sign up</h2>
|
||||
<div class="box">
|
||||
<form id="signupForm" action="/signup" method="post">
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password">
|
||||
<input class="big fullWidth marginTop" type="password" name="password_confirm" placeholder="Password confirmation">
|
||||
<input class="big fullWidth" type="email" name="email" placeholder="Email address" required autofocus>
|
||||
<input class="big fullWidth marginTop" type="password" name="password" placeholder="Password" required minlength="6">
|
||||
<input class="big fullWidth marginTop" type="password" name="password_confirm" placeholder="Password confirmation" required minlength="6">
|
||||
<p id="signupFormError" class="formError justify marginTop"></p>
|
||||
<div class="right marginTop">
|
||||
<button type="submit">Sign up</button>
|
||||
|
||||
Reference in new issue
Block a user