From f213d494a554b2c1279ddf5596adc1880c8a8cc8 Mon Sep 17 00:00:00 2001
From: Bitha17 <16521076@mahasiswa.itb.ac.id>
Date: Wed, 4 Oct 2023 22:07:26 +0700
Subject: [PATCH] file restructuring and minor edits

---
 app/{View => Views/login}/login.php    | 8 ++++----
 app/{View => Views/login}/register.php | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
 rename app/{View => Views/login}/login.php (70%)
 rename app/{View => Views/login}/register.php (93%)

diff --git a/app/View/login.php b/app/Views/login/login.php
similarity index 70%
rename from app/View/login.php
rename to app/Views/login/login.php
index 501ebe1..6e6b601 100644
--- a/app/View/login.php
+++ b/app/Views/login/login.php
@@ -5,16 +5,16 @@
         <title>Login • TICKET KU</title>
         <meta charset="UTF-8">
         <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
-        <link rel="stylesheet" type="text/css" href="../../styles/auth.css">
+        <link rel="stylesheet" type="text/css" href="../../../styles/auth.css">
     </head>
 
     <body>
         <div class="login-container">
             <h1>Login</h1>
-            <form id="loginForm" method="post" action="../../home.php">
+            <form id="loginForm" method="post" action="../../router.php">
                 <!-- Aslinya email atau username bisa(?) -->
-                <label for="email">Email</label>
-                <input type="email" id="email" name="loginEmail" required>
+                <label for="email">Email or Username</label>
+                <input type="text" id="identifier" name="loginIdentifier" required>
                 
                 <label for="password">Password</label>
                 <input type="password" id="password" name="loginPassword" required>
diff --git a/app/View/register.php b/app/Views/login/register.php
similarity index 93%
rename from app/View/register.php
rename to app/Views/login/register.php
index ed6173b..f326b6d 100644
--- a/app/View/register.php
+++ b/app/Views/login/register.php
@@ -5,13 +5,13 @@
         <title>Register • TICKET KU</title>
         <meta charset="UTF-8">
         <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
-        <link rel="stylesheet" type="text/css" href="../../styles/auth.css">
+        <link rel="stylesheet" type="text/css" href="../../../styles/auth.css">
     </head>
 
     <body>
         <div class="register-container">
             <h1>Register</h1>
-            <form id="registerForm" method="post" action="../../home.php">
+            <form id="registerForm" method="post" action="../../../home.php">
                 <label for="userName">Name</label>
                 <input type="text" id="userName" name="userName" required>
 
-- 
GitLab