Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 43b31f64 authored by 65160381's avatar 65160381
Browse files

Update file registerController.js

parent 385a2a3a
No related branches found
No related tags found
No related merge requests found
Pipeline #503 passed with warnings
......@@ -31,7 +31,6 @@ module.exports = {
await pool.execute(query, [email, hashedPassword]);
// ส่งข้อความแจ้งเตือนและเปลี่ยนเส้นทางไปที่หน้า login
req.flash('message', 'User registered successfully. Please log in.');
res.redirect('/login');
} catch (err) {
console.error('Error inserting user:', err);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment