Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using www.eyeem > otherwise we produce a 301 redirect
trying to conform to passportjs profile covention conforming to express3 in example added all node_modules to .gitignore little more user info on index when logged in note that EJS layouts aren't working that way with express3. Too lazy to fix now.
- Loading branch information
1 parent
62b8036
commit c13f467
Showing
4 changed files
with
27 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ | |
.idea | ||
|
||
# Node.js | ||
node_modules/* | ||
node_modules | ||
npm-debug.log | ||
*.tgz |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<% if (!user) { %> | ||
<h2>Welcome! Please log in.</h2> | ||
<a href="/auth/eyeem">Login with Eyeem</a> | ||
<% } else { %> | ||
<h2>Hello, <%= user.username %>.</h2> | ||
<h2><img src="<%= user._json.user.thumbUrl %>" style="float:left;"/> Hello, <%= user.username %>.</h2> | ||
Visit <a href="<%= user._json.user.webUrl %>" target="_blank">your Eyeem profile</a> | ||
<% } %> |
This file contains 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