diff --git a/content/profile.php b/content/profile.php index 81f2006..8fc7566 100644 --- a/content/profile.php +++ b/content/profile.php @@ -2,7 +2,7 @@ include_once 'php/controller/profile-controller.php'; $user = $user ?? null; -$isEditMode = isset($_GET["edit"]) && $_GET["edit"] === "1"; +$isEditMode = (isset($_GET["edit"]) && $_GET["edit"] === "1") || !empty($error); ?>
@@ -10,8 +10,8 @@ $isEditMode = isset($_GET["edit"]) && $_GET["edit"] === "1";
- -

+ +

@@ -22,7 +22,7 @@ $isEditMode = isset($_GET["edit"]) && $_GET["edit"] === "1"; " + value="" required> @@ -30,7 +30,7 @@ $isEditMode = isset($_GET["edit"]) && $_GET["edit"] === "1"; " + value="" required> @@ -38,18 +38,26 @@ $isEditMode = isset($_GET["edit"]) && $_GET["edit"] === "1"; " + value="" required> - " - > + + + + + +

diff --git a/content/register.php b/content/register.php index 641bca2..e2b3562 100644 --- a/content/register.php +++ b/content/register.php @@ -1,16 +1,18 @@ +