Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 7ed4f9f9 authored by 65160394's avatar 65160394
Browse files

Project Round 7

parent 4e4e404f
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
"dependencies": {
"bcryptjs": "^3.0.2",
"body-parser": "^1.20.3",
"connect-flash": "^0.1.1",
"dotenv": "^16.4.7",
"ejs": "^3.1.10",
"express": "^4.21.2",
......
......@@ -12,7 +12,6 @@
"dependencies": {
"bcryptjs": "^3.0.2",
"body-parser": "^1.20.3",
"connect-flash": "^0.1.1",
"dotenv": "^16.4.7",
"ejs": "^3.1.10",
"express": "^4.21.2",
......
......@@ -3,7 +3,6 @@ const bodyParser = require('body-parser');
const dotenv = require('dotenv');
const tourRoutes = require('./routes/tourRoutes');
const session = require('express-session');
const flash = require('connect-flash');
dotenv.config();
const app = express();
......@@ -20,7 +19,6 @@ app.use(express.static('public'));
app.use(bodyParser.urlencoded({ extended: false }));
app.use(express.urlencoded({ extended: true }));
app.use(express.json());
app.use(flash());
app.use('/', tourRoutes);
......
......@@ -28,19 +28,6 @@
<p>Don't have an account? <a href="/register">Register here</a></p>
<!-- แสดงข้อความแจ้งเตือน -->
<% if (messages.success) { %>
<div class="alert alert-success">
<%= messages.success %>
</div>
<% } %>
<% if (messages.error) { %>
<div class="alert alert-danger">
<%= messages.error %>
</div>
<% } %>
</div>
</body>
</html>
......@@ -37,18 +37,6 @@
<p>Already have an account? <a href="/login">Login here</a></p>
<!-- แสดงข้อความแจ้งเตือน -->
<% if (messages.success) { %>
<div class="alert alert-success">
<%= messages.success %>
</div>
<% } %>
<% if (messages.error) { %>
<div class="alert alert-danger">
<%= messages.error %>
</div>
<% } %>
</div>
</body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment