mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-14 01:37:48 -05:00
Less annoying print outs
This commit is contained in:
@@ -21,7 +21,7 @@ exports.isLoggedIn = function(req, res, next) {
|
|||||||
|
|
||||||
exports.authenticated = function(req, res, next) {
|
exports.authenticated = function(req, res, next) {
|
||||||
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
|
res.header('Cache-Control', 'private, no-cache, no-store, must-revalidate');
|
||||||
console.log("account/server/controllers/users.js - exports.authenticated() Auth check for user: " + req.user + " is: " + req.isAuthenticated());
|
//console.log("account/server/controllers/users.js - exports.authenticated() Auth check for user: " + req.user + " is: " + req.isAuthenticated());
|
||||||
if (req.isAuthenticated()) {
|
if (req.isAuthenticated()) {
|
||||||
var clientUser = (({
|
var clientUser = (({
|
||||||
firstName,
|
firstName,
|
||||||
@@ -88,7 +88,7 @@ exports.login = function(req, res, next) {
|
|||||||
userId: user.id
|
userId: user.id
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log("account/server/controllers/users.js - req.login() Authenicated: " + user.email);
|
//console.log("account/server/controllers/users.js - req.login() Authenicated: " + user.email);
|
||||||
// go ahead and create the new user
|
// go ahead and create the new user
|
||||||
var clientUser = (({
|
var clientUser = (({
|
||||||
firstName,
|
firstName,
|
||||||
@@ -510,7 +510,7 @@ exports.updateProfile = function(req, res, next) {
|
|||||||
user.screenName = res.locals.screenName
|
user.screenName = res.locals.screenName
|
||||||
user.location = res.locals.location
|
user.location = res.locals.location
|
||||||
|
|
||||||
console.log(user)
|
|
||||||
user.save(err => {
|
user.save(err => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user