MAPG-180 standardize form submit with AJAX

This commit is contained in:
bence committed 2020-06-25 22:35:04 +02:00
1 parent e4a51c139f
commit ec969167e4
12 files changed
+18 -148

No files matched your search

+1 -6
View File
@@ -1,13 +1,8 @@
<?php
$jsFiles = [
'js/login/login.js',
];
?>
<?php require ROOT . '/views/templates/main_header.php'; ?>
<?php require ROOT . '/views/templates/header.php'; ?>
<h2>Login</h2>
<div class="box">
<form id="loginForm" action="/login" method="post">
<form id="loginForm" action="/login" method="post" data-redirect-on-success="/">
<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>