Minor changes
parent
f7d2fd3482
commit
059c3bd91d
|
@ -23,7 +23,7 @@ module.exports = (app, passport) => {
|
|||
res.redirect( req.session.next || '/map' );
|
||||
},
|
||||
appLoginCallback = (req,res,next)=>{
|
||||
console.log('appLoginCallback called.');
|
||||
// console.log('appLoginCallback called.');
|
||||
if (req.user){ res.send(req.user); }
|
||||
else {
|
||||
let err = new Error("Unauthorized");
|
||||
|
|
|
@ -144,7 +144,9 @@ const
|
|||
// Development handlers
|
||||
else {
|
||||
app.use( (err,req,res,next)=>{
|
||||
console.error(`⛔ ${err.stack}`);
|
||||
if (err.status!==404) {
|
||||
console.error(`⛔ ${err.stack}`);
|
||||
}
|
||||
if (res.headersSent) { return next(err); }
|
||||
res.status(err.status||500);
|
||||
res.render('error', {
|
||||
|
|
|
@ -54,22 +54,22 @@ form #social-login {
|
|||
font-size: .6em;
|
||||
}
|
||||
#social-login .btn.gp {
|
||||
background: rgb(206,77,57);
|
||||
background: #ce4d39;
|
||||
}
|
||||
#social-login .btn.gp:hover {
|
||||
background: rgb(251,122,102);
|
||||
background: #fb7a66;
|
||||
}
|
||||
#social-login .btn.fb {
|
||||
background: rgb(48,88,145);
|
||||
background: #305891;
|
||||
}
|
||||
#social-login .btn.fb:hover {
|
||||
background: rgb(93,133,190);
|
||||
background: #5d85be;
|
||||
}
|
||||
#social-login .btn.tw {
|
||||
background: rgb(44,168,210);
|
||||
background: #2ca8d2;
|
||||
}
|
||||
#social-login .btn.tw:hover {
|
||||
background: rgb(89,213,255);
|
||||
background: #59d5ff;
|
||||
}
|
||||
/* Small buttons */
|
||||
@media (max-width:600px), (min-width:800px) and (max-width:1200px) {
|
||||
|
|
Loading…
Reference in New Issue