From 053c1835fada52e7ea3be3ddbbe4a12d45a8b813 Mon Sep 17 00:00:00 2001
From: grouille <guillaume.rouille@polytech-lille.net>
Date: Tue, 14 Apr 2020 20:54:34 +0200
Subject: [PATCH] Test

---
 site/inscription.php | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/site/inscription.php b/site/inscription.php
index 4558d2f..4258c71 100644
--- a/site/inscription.php
+++ b/site/inscription.php
@@ -27,8 +27,10 @@ if(getGroupe($_SESSION['Login'])!=1)
 							<?php
 							$retour = "Nouveau compte créé avec succès ";
 							$color = "alert-success";
-							if (notAMember($_POST["id"])){
-								if($_POST["pass1"]==$_POST["pass2"]){
+							if (notAMember($_POST["id"]))
+							{
+								if($_POST["pass1"]==$_POST["pass2"])
+								{
 									if(inscription($_POST["id"], $_POST["pass1"], $_POST["nom"], $_POST["prenom"], $_POST["groupe"]))
 									{
 										$_SESSION['Login'] = $_POST['id'];
@@ -36,14 +38,19 @@ if(getGroupe($_SESSION['Login'])!=1)
 										?><meta http-equiv="Refresh" content="0;url=accueil.php" /><?php
 									}
 									else
+									{
 										$retour = "Echec de la création du compte !";
 										$color = "alert-danger";
+									}
 								}
 								else
+								{
 									$retour = "Les 2 mots de passe ne sont pas identiques !";
 									$color = "alert-danger";
+								}
 							}
-							else{
+							else
+							{
 								$retour = "Le compte existe déjà !";
 								$color = "alert-danger";
 							}
--
libgit2 0.21.2