From 66d612ce7aa58abaa83e1cc5f5a667f10e6a22b9 Mon Sep 17 00:00:00 2001
From: Atiwit Pattanapukdee <65160394@go.buu.ac.th>
Date: Sun, 16 Mar 2025 17:21:36 +0700
Subject: [PATCH] Project Round 2

---
 controllers/tourController.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/tourController.js b/controllers/tourController.js
index 287f30d..1b7908a 100644
--- a/controllers/tourController.js
+++ b/controllers/tourController.js
@@ -52,7 +52,7 @@ exports.postRegister = (req, res) => {
         User.create(name, email, password, (err, userId) => {
             if (err) return res.render('register', { message: 'Error creating user' });
             req.session.userId = userId;
-            res.redirect('/');
+            res.redirect('/login');
         });
     });
 };
-- 
GitLab