From b8833e1fb87ca6b5e482f70251f80d6e8079a5a4 Mon Sep 17 00:00:00 2001
From: 65160381 <65160381@go.buu.ac.th>
Date: Wed, 19 Mar 2025 13:03:07 +0000
Subject: [PATCH] Update file register.ejs

---
 views/register.ejs | 52 ++++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 22 deletions(-)

diff --git a/views/register.ejs b/views/register.ejs
index ab9f92a..5576bfb 100644
--- a/views/register.ejs
+++ b/views/register.ejs
@@ -128,28 +128,36 @@
       </symbol>
     </svg>
     
-<main class="form-signin w-100 m-auto">
-  <form action="/user/register" method="POST">
-    <h1 class="h3 mb-3 fw-normal">Sign up</h1>
-
-    <div class="form-floating">
-        <label for="floatingInput">Email address</label>
-      <input type="email" class="form-control" id="floatingInput" name="email" placeholder="name@example.com">
-    </div>
-    <div class="form-floating">
-        <label for="floatingPassword">Password</label>
-      <input type="password" class="form-control" id="floatingPassword" name="rpassword" placeholder="Password">
-    </div>
-
-    <div class="form-check text-start my-3">
-      <input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
-      <label class="form-check-label" for="flexCheckDefault">
-        Remember me
-      </label>
-    </div>
-    <button class="btn btn-primary w-100 py-2" type="submit">Sign up</button>
-  </form>
-</main>
+    <main class="form-signin w-100 m-auto">
+      <form action="/user/register" method="POST">
+        <h1 class="h3 mb-3 fw-normal">Sign up</h1>
+    
+        <div class="form-floating">
+            <label for="floatingInput">Email address</label>
+          <input type="email" class="form-control" id="floatingInput" name="email" placeholder="name@example.com">
+        </div>
+    
+        <div class="form-floating">
+            <label for="floatingPassword">Password</label>
+          <input type="password" class="form-control" id="floatingPassword" name="rpassword" placeholder="Password">
+        </div>
+    
+        <div class="form-floating">
+            <label for="floatingConfirmPassword">Confirm Password</label>
+          <input type="password" class="form-control" id="floatingConfirmPassword" name="confirm_password" placeholder="Confirm Password">
+        </div>
+    
+        <div class="form-check text-start my-3">
+          <input class="form-check-input" type="checkbox" value="remember-me" id="flexCheckDefault">
+          <label class="form-check-label" for="flexCheckDefault">
+            Remember me
+          </label>
+        </div>
+    
+        <button class="btn btn-primary w-100 py-2" type="submit">Sign up</button>
+      </form>
+    </main>
+    
 <script src="/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
 
     </body>
-- 
GitLab