-
How can I improve my English?
Sign up at colingo.com and join our daily classes.
-
How do I get started?
Follow the instructions step-by-step available at http://www.colingo.com/gettingstarted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: Cannot call method 'getAccount' of undefined | |
at onAuthcResult (d:\xampp\htdocs\sites\varsity-b-p1-microsite\node_modules\ | |
passport-stormpath\lib\strategy.js:82:34) | |
at Application.authenticateApplicationAccount [as authenticateAccount] (d:\x | |
ampp\htdocs\sites\varsity-b-p1-microsite\node_modules\passport-stormpath\node_mo | |
dules\stormpath\lib\resource\Application.js:134:3) | |
at Strategy.authenticate (d:\xampp\htdocs\sites\varsity-b-p1-microsite\node_ | |
modules\passport-stormpath\lib\strategy.js:77:16) | |
at attempt (d:\xampp\htdocs\sites\varsity-b-p1-microsite\node_modules\passpo | |
rt\lib\middleware\authenticate.js:341:16) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var path = require('path'); | |
var favicon = require('serve-favicon'); | |
var logger = require('morgan'); | |
var cookieParser = require('cookie-parser'); | |
var bodyParser = require('body-parser'); | |
var passport = require('passport'); | |
var StormpathStrategy = require('passport-stormpath'); | |
var session = require('express-session'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var router = express.Router(); | |
var config = require('config'); | |
var passport = require('passport'); | |
var stormpath = require('stormpath'); | |
// Register a new user to Stormpath. | |
router.post('/register', function(req, res, next) { | |
// var username = req.body.username; |