diff --git a/README.md b/README.md
index 2398fd3..2a2f62a 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@ Notes:
| updated_at | datetime |
| role | varchar(20) |
-**Logs** *(Incomplet)*
+**Logs**
| nr_logs | |
|------------ |---------------------- |
| id | int(11) |
diff --git a/about.php b/about.php
index ad388b6..0067515 100644
--- a/about.php
+++ b/about.php
@@ -48,7 +48,7 @@
Notre Dashboard simple d'utilisation et de compréhension permet le suivi de trame facilement et rapidement, grace notamment aux tries possibles des trames ainsi que des statistiques compréhensibles par tous.
-
+
Your browser does not support the video tag.
diff --git a/assets/css/style.css b/assets/css/style.css
index 8877c04..bef27cd 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -5,8 +5,6 @@
* Browsers: last 6 version
*/
-
-
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
diff --git a/assets/js/script.js b/assets/js/script.js
index 1300e31..cc4eec4 100644
--- a/assets/js/script.js
+++ b/assets/js/script.js
@@ -10,13 +10,9 @@ const init = () => {
initNavbarResponsive();
initModal();
initLocalization();
- initForm('.form-contact', (response) => {
- if (response.success) window.location.href = './';
- });
+ initForm('.form-contact');
initForm('.form-forgot');
- initForm('.form-recovery', (response) => {
- if (response.success) window.location.href = './';
- });
+ initForm('.form-recovery');
initForm('.form-login', (response) => {
if (response.success) loginSuccessHandler();
if (response.errors) loginErrorHandler('.form-login', response.errors);
@@ -158,10 +154,8 @@ const initForm = (formClass, successHandler = () => { }) => {
successHandler(response);
if (response.success) {
if (!$('.btn[type="submit"]').hasClass('btn-success')) {
- $('.btn[type="submit"]').toggleClass('btn-success');
- setTimeout(() => {
- $('.btn[type="submit"]').toggleClass('btn-success');
- }, 2000)
+ $('.btn[type="submit"]').toggleClass('btn-success').css('cursor', 'not-allowed');
+
}
} else {
if (!$('.btn[type="submit"]').hasClass('btn-error')) {
diff --git a/index.php b/index.php
index 963c954..c2fd220 100644
--- a/index.php
+++ b/index.php
@@ -89,7 +89,7 @@
-
+
Your browser does not support the video tag.
diff --git a/nr_database.sql b/nr_database.sql
index dd25ef1..e2bb754 100644
--- a/nr_database.sql
+++ b/nr_database.sql
@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1
--- Généré le : lun. 11 jan. 2021 à 09:15
+-- Généré le : ven. 15 jan. 2021 à 09:52
-- Version du serveur : 10.4.14-MariaDB
-- Version de PHP : 7.4.11
@@ -83,7 +83,8 @@ ALTER TABLE `nr_contact`
-- Index pour la table `nr_logs`
--
ALTER TABLE `nr_logs`
- ADD PRIMARY KEY (`id`);
+ ADD PRIMARY KEY (`id`),
+ ADD KEY `logs_users_id` (`user_id`);
--
-- Index pour la table `nr_users`
@@ -111,7 +112,17 @@ ALTER TABLE `nr_logs`
-- AUTO_INCREMENT pour la table `nr_users`
--
ALTER TABLE `nr_users`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
+ MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
+
+--
+-- Contraintes pour les tables déchargées
+--
+
+--
+-- Contraintes pour la table `nr_logs`
+--
+ALTER TABLE `nr_logs`
+ ADD CONSTRAINT `logs_users_id` FOREIGN KEY (`user_id`) REFERENCES `nr_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;