b0VIM 7.32"ombrombr U3210#"! Utprdtadr.{vO' s Z D > f R J :  w T :  q ] M ) z R -  |4jM?,rd7 I3wUKjD2(q^ return _.app.token.getInfo(req.params.token, req.params.appToken, function(err, info) { json = {}; var json; this.routeGet('/info/:token/:appToken', function(req, res) { }); return res.redirect('/auth/local'); console.log("REDIRECT LOCAL AUTH"); } return; res.redirect('/redirect/'); if (req.user != null) { } req.session.url = req.params[0]; if ((req.params != null) && (req.params[0] != null) && req.params[0] !== '') { this.routeGet('/login/*', function(req, res) { }); return res.redirect('/'); } return; res.redirect(req.params[0]); if ((req.params != null) && (req.params[0] != null) && req.params[0] !== '') { delete req.session.token; req.logout(); this.routeGet('/logout/*', function(req, res) { _ = this; var _; Auth.prototype._routes = function() { }; } }); } cb(null, user); }); userId: user.id _.app.event.emit('user/login', { } } return; cb(['Wrong Password'], null); if (datas.password !== user[source].password) { if (source === 'local') { } else { } cb(err, null); } else { }); }); }); userId: user.id _.app.event.emit('user/login', { cb(null, user); return store.findUserById(userId, function(err, user) { return store.addUser(source, id, datas, function(err, userId) { if (err[0] === 'Not found') { if (err != null) { console.log(err); console.log(_.app.stores); console.log("DID WE FIND ?"); return store.findUserBySourceAndId(source, id, function(err, user) { if (user !== null) {} else { console.log(_.app.stores); console.log("LOGIN ?"); store = this.app.stores.user; _ = this; var store, _; Auth.prototype.login = function(source, id, datas, user, cb) { }; }); }); id: id source: source, userId: userId, return _.emit('user/new', { cb(null, userId); console.log(_.app.stores); console.log("ADDED :"); _.checkErr(err); return store.addUser(source, id, datas, function(err, userId) { store = this.app.stores.user; console.log("ADDUSER ?"); _ = this; } datas = {}; if (datas == null) { } id = ''; if (id == null) { } source = ''; if (source == null) { var store, _; Auth.prototype.addUser = function(source, id, datas, cb) { } this._routes(); this._everyAuth(); console.log(this.app.stores); console.log(app.stores); console.log("CONSTRUCT :"); this.app = app; function Auth(app) { __extends(Auth, Component); module.exports = Auth = (function() { Component = require('../component'); }; return child; child.__super__ = parent.prototype; child.prototype = new ctor; ctor.prototype = parent.prototype; function ctor() { this.constructor = child; } for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { var Auth, Component;n() {ad,dqV9j? g .  Z J & ] S f J (  { _ B $  T. \#[5E.J+{s\UD<-,}).call(this); })(); return Auth; }; return _results; } })); return promise; }, session); return promise.fulfill(user); } return; promise.fulfill(err); if (err != null) { _.login(providerName, accessToken, datas, null, function(err, user) { promise = _.everyAuth.password.Promise(); datas.accessTokenExtra = accessTokenExtra; datas.accessToken = accessToken; var promise; _results.push(this.everyAuth[providerName].findOrCreateUser(function(session, accessToken, accessTokenExtra, datas) { this.everyAuth[providerName].redirectPath('/redirect'); this.everyAuth[providerName][key](value); value = providerConfigs[key]; for (key in providerConfigs) { _results = []; _ = this; var key, value, _, _results; Auth.prototype._everyAuth_Providers = function(providerName, providerConfigs) { }; return this.everyAuth.helpExpress(this.express()); this.express().use(this.everyAuth.middleware()); } this._everyAuth_Providers(providerName, providerConfigs); providerConfigs = _ref[providerName]; for (providerName in _ref) { _ref = _.app.configs.everyAuth; }).loginSuccessRedirect('/redirect').registerSuccessRedirect('/redirect'); return null; }).registerUser(function(newUserAttrs) { return null; }).getRegisterPath('/register').postRegisterPath('/register').registerView('register.jade').validateRegistration(function(newUserAttrs, errors) { return promise; }); return promise.fulfill(user); } return; promise.fulfill(err); if (err !== null) { console.log(user); console.log(err); console.log("AUTHENTIFICATION RES"); }, null, function(err, user) { password: password login: login, _.login('local', login, { promise = this.Promise(); console.log(store); console.log("PASSWORD AUTHENTIFICATION"); var promise; this.everyAuth.password.loginWith('email').getLoginPath('/auth/local').postLoginPath('/auth/local').loginView('login').authenticate(function(login, password) { }); return store.findUserById(id, cb); console.log("FIND USER BY ID ??" + id); this.everyAuth.everymodule.findUserById(function(id, cb) { this.everyAuth = require('everyauth'); store = this.app.stores.user; _ = this; var providerConfigs, providerName, store, _, _ref; Auth.prototype._everyAuth = function() { }; }); } return _.app.token.add(req.user.id, {}, tokenCallback); } else { return tokenCallback(null, req.session.token); if (req.session.token != null) { }; } }); token: token res.json({ } else { res.redirect(url); req.session.url = null; url = req.session.url + token; if (req.session.url != null) { req.session.token = token; var url; tokenCallback = function(err, token) { } return; res.redirect('/login/'); if (!req.loggedIn) { var tokenCallback; return this.routeGet('/redirect', function(req, res) { }); }); return res.json(info); _.checkErr(err);