stormpath / express-stormpath-sample-project Goto Github PK
View Code? Open in Web Editor NEWA sample Express-Stormpath project that showcases how to store profile data in customData.
A sample Express-Stormpath project that showcases how to store profile data in customData.
The nav bar collapses for narrow screen widths but the collapsed menu is not functional.
When I open this sample application, and attempt to do step 3 (forgot password), here's my experience: http://g.recordit.co/a8FkNaqZjU.gif
After attempting to reset my password, I'm left in an odd state where:
Very confusing.
Navigate to /register yields this jade processing error from deep within express-stormpath ...
/usr/local/bin/node server.js
Stormpath Ready
SyntaxError: Unexpected token (1:42)
at Parser.pp.raise (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1745:13)
at Parser.pp.unexpected (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:2264:8)
at Parser.pp.parseBindingAtom (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1876:12)
at Parser.pp.parseMaybeDefault (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1920:23)
at Parser.pp.parseBindingList (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1896:23)
at Parser.pp.parseFunctionParams (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:2776:22)
at Parser.pp.parseFunction (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:2769:8)
at Parser.pp.parseExprAtom (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1129:19)
at Parser.pp.parseExprSubscripts (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1023:19)
at Parser.pp.parseMaybeUnary (/Volumes/MCCOY_DATA/NodeDev/express-stormpath-sample-project/node_modules/jade/node_modules/with/node_modules/acorn/dist/acorn.js:1004:19)
Maybe the package.json file should have a less specific specifier?
It would be much more consistent to have all StormPath provided pages, such as Login, Registration, Forgot Password, etc., displayed with the NavBar header on top. It would improve the over-all consistency and navigability of the application.
Could you guide me on how to achieve this, or fix this in the sample app?
Thanks
Getting Error When running server.js
Server listening on http://localhost:3000
Error: Unable to execute httprequest GET https://api.stormpath.com/v1/applications/<someid>/accountStoreMappings
Request.onRequestResult [as _callback] (D:\testapp\sample\node_modules\express-stormpath\node_modules\stormpath\lib\ds\RequestExecutor.js:89:21)
at self.callback (D:\testapp\sample\node_modules\express-stormpath\node_modules\stormpath\node_modules\request\request.js:187:22)
at emitOne (events.js:77:13)
at Request.emit (events.js:169:7)
at Request.onRequestError (D:\testapp\sample\node_modules\express-stormpath\node_modules\stormpath\node_modules\request\request.js:813:8)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at TLSSocket.socketErrorListener (_http_client.js:258:9)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)`
It's written precisely the way I would do on my best day, so there is not a trace of impedance mismatch when I read it
Hello all,
Trying to get this working with my heroku app. I'm using ejs instead of jade and on the profile page I have this:
<form method="post"> <fieldset action="/profile" class="form-group"> <label for="favcolor">Favorite Color</label> <input type="text" class="form-control" id="favcolor" value="<%- user.customData.favoriteColor %>" placeholder="Enter your favorite color"> <small class="text-muted">We'll never share your color with anyone else.</small> </fieldset> <fieldset class="form-group"> <label for="birthday">Password</label> <input type="text" class="form-control" id="birthday" value="<%- user.customData.birthday %>" placeholder="Enter your birthday"> </fieldset> <button type="submit" class="btn btn-primary">Submit</button> </form>
But when I click on Submit it doesn't post anything. Should there be an action pointing to the api?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.