Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Memes and Added some contests related photos #126

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controls/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports.postLogin = function (req, res) {
console.log(err);
return res.render('login', { message: "Wrong username or password" });
}
return res.redirect('/');
return res.redirect('/?msg=' + req.body.username + "-signin-successfully!");
});
})(req, res);
};
Expand Down
11 changes: 4 additions & 7 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,22 @@
<div class="slideshow-container">
<div class="mySlides fade">
<div class="numbertext">1 / 4</div>
<img src="https://i.imgur.com/mKbNoRZ.jpg">
<div class="text caption">Knowledge</div>
<img src="https://arthurpeace.com/wp-content/uploads/2019/02/Google-Hash-Code-2019.jpg">
</div>

<div class="mySlides fade">
<div class="numbertext">2 / 4</div>
<img src="https://i.imgur.com/a4jBySC.jpg">
<div class="text caption">Fun</div>
<img src="https://www.codechef.com/download/small-banner/COOK96A/1532160868.png">
</div>

<div class="mySlides fade">
<div class="numbertext">3 / 4</div>
<img src="https://i.imgur.com/TgTRLyl.jpg">
<div class="text caption">Snacks</div>
<img src="https://www.codechef.com/download/small-banner/APRIL19B/1554292781.jpg">
</div>

<div class="mySlides fade">
<div class="numbertext">4 / 4</div>
<img src="https://i.imgur.com/aTYtzcC.jpg">
<img src="https://it-edu.com/sites/default/files/2018-10/snack_0.jpg">
<div class="text caption"><a href="/user/login">Join Now</a></div>
</div>

Expand Down
9 changes: 7 additions & 2 deletions views/login.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.11/handlebars.js"></script>
<link rel="stylesheet" type="text/css" href="/css/sheet.css">
<link rel="stylesheet" type="text/css" href="/css/grid.css">

</head>
<body>
<header>
<% include partials/header %>
Expand All @@ -39,5 +39,10 @@
<% include partials/footer %>
</footer>
</body>

<script>
var message = <%- JSON.stringify(message) %>;
if (message) {
window.alert(message);
}
</script>
</html>