Skip to content
Snippets Groups Projects
Commit d0a0a9b6 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

Removed some console logging

parent 4011828e
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@
"jsonwebtoken": "^8.2.1",
"knex": "^0.14.6",
"ldap-escape": "^1.1.5",
"ldapauth-fork": "^4.0.2",
"ldapjs": "^1.0.2",
"lodash": "^4.17.10",
"morgan": "^1.9.0",
......
......@@ -70,6 +70,6 @@ passport.serializeUser(function (user, done) {
//The first argument of deserializeUser corresponds to the key of the user object that was given to the done function in serializeUser
//The fetched object is attached to the request object as req.user (available in all subsequent middleware)
passport.deserializeUser(function (userUid, done) {
console.log(`passport.deserializeUser(): deserializing user ${userUid}`); // DEBUG
// console.log(`passport.deserializeUser(): deserializing user ${userUid}`); // DEBUG
done(null, { uid: userUid });
});
\ No newline at end of file
......@@ -8,8 +8,6 @@ function loginResolverFunc({ username, password, req }) {
return new Promise((resolve, reject) => {
passport.authenticate('ldapauth', (err, user, info) => {
console.log(info);
if (err) { reject(err); }
if (!user) { reject('Invalid credentials.'); }
......
......@@ -196,10 +196,6 @@ app.use('/graphql',
// vary the options *on a per-request basis*
let uid;
let password;
console.log("Responding to graphql request...");
console.log(`User ${req.user ? req.user.uid : "none"}`);
console.log("User is authenticated:",req.isAuthenticated());
if(req.isAuthenticated()) {
try {
......@@ -215,8 +211,6 @@ app.use('/graphql',
password = passwd;
}
console.log("Cookies:",req.cookies);
return {
schema,
graphiql: environment == 'development', // gives access to GraphiQL if req comes from browser (je crois)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment