Skip to content

Instantly share code, notes, and snippets.

Avatar

Kesara Wimal kesarawimal

View GitHub Profile
View dabblet.css
@import url("https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css");
h1 {
text-align: center;
margin: 35px 0 20px 0 !important;
}
View findone.ts
User.findOne({
name: req.body.name
}, function(err, user) {
if (err) throw err;
if (!user) {
res.json({ success: false, message: 'Authentication failed. User not found.' });
} else if (user) {
You can’t perform that action at this time.