Commit Graph

104 Commits

Author SHA1 Message Date
Mrugesh Mohapatra
3ad70a7926 feat: add gdpr privacy and terms 2018-05-28 19:12:26 +05:30
Stuart Taylor
238657d356 fix(points): Assign external user points when validated (#17228)
Trying to emulate ` component-passport`.

There has to be a reason why we don't do this in the user service.
2018-05-24 21:28:00 +05:30
Stuart Taylor
58a5d0d181 fix(external): Ensure req.user on verified web token (#17225) 2018-05-24 16:49:51 +05:30
Stuart Taylor
dfda68fb58 feat(auth): Authorise 'external' requests through JWT (#17224) 2018-05-24 01:40:56 +05:30
Mrugesh Mohapatra
c2a0443486 fix: report error only when enabled 2018-05-20 13:40:48 +05:30
mrugesh mohapatra
0271e78a1d chore(opbeat): Remove opbeat react logging (#17173) 2018-05-16 15:22:43 +01:00
Stuart Taylor
f916204ba5 Chore: Update User model (#17171)
* fix(logs): Remove console.log's

* chore(challengeMap): challengeMap -> completedChallenges

* chore(userModel): Update user model

* feat(userIDs): Add user ident fields

* chore(github): Remove more refs to github data
2018-05-15 19:26:26 +05:30
Stuart Taylor
156ea1af76 Feat: Welcome Page (#17150) 2018-05-15 10:42:05 +05:30
Stuart Taylor
ebfbfb6df9 chore(package): Update react-freecodecamp-search (#16943) 2018-03-23 18:41:07 -05:00
Stuart Taylor
a0c3d5bd08 feat(opbeat): Enable opbeat-react for frontend performance tracking 2018-03-09 15:42:44 +00:00
Stuart Taylor
c6975c77df fix(search): Allow csp to always trust search.freecodecamp.org 2018-02-12 22:38:42 +00:00
Berkeley Martinez
b8f8ea80cf feat(express): Add sendFlash to send a flash message json 2018-01-30 17:14:33 -08:00
Berkeley Martinez
13c9d97262 fix(error-reporter): Only report uncaught errors (#16526)
Errors that have status codes do not need reporting. If opbeat is not enabled, do not report
2018-01-19 11:03:57 +05:30
Berkeley Martinez
0b62f4450c refactor(jade-helpers): Clean up code 2018-01-18 15:20:54 -08:00
Berkeley Martinez
9a481afe6a feat(jade): Add cacheBreaker for dev browser cache breaking 2018-01-18 15:20:54 -08:00
Berkeley Martinez
4a911931d0 fix(server/flash): Api to match documentation
This fixes duplication issues and normalize our use with everyone else
2018-01-18 15:20:54 -08:00
Berkeley Martinez
2bb27e8dc6 feat(Flash): Get flash messages on load 2018-01-18 15:20:54 -08:00
Berkeley Martinez
387eafbf33 feat(Flash): Add render methods that do not dump flash autom
query from the front end app for these messages
2018-01-18 15:20:54 -08:00
Cassidy Pignatello
eab62f6623 Merge branch 'staging' into fix/normalize-flash-type 2018-01-10 14:19:00 -05:00
cassidypignatello
f158183039 fix(app): Normalize flash type
Changed flash messages to use types provided by Bootstrap

Closes #16395
2018-01-08 17:25:45 -05:00
Berkeley Martinez
a1530c041a fix(Auth): Error type in json payload 2018-01-02 23:38:01 +05:30
Berkeley Martinez
d5e7bd586d fix(handled-errors): Handled errors should default to 200 2018-01-02 23:38:01 +05:30
Berkeley Martinez
13b7eac16f fix(passport/login): Use middleware instead of bootscript
prototype overwrite doesn't seem have any effect
2018-01-02 23:38:01 +05:30
Berkeley Martinez
894a309723 fix(middlewares/errorhandler): Remove npm module and refactor for fcc use case 2018-01-02 23:38:01 +05:30
Berkeley Martinez
19c7bb1ac9 chore(packages): Update validator and express-validator 2018-01-02 23:38:01 +05:30
Stuart Taylor
b4542a5aa3 feat(search): Add react-freecodecamp-search to Nav (#16209) 2017-12-18 10:48:21 -06:00
Timo
dcfe18d5d5 refactor: Replace .com with .org 2017-08-26 00:07:44 +02:00
Berkeley Martinez
2fcd976700 fix(signup): signup auth (#15628)
* fix(models.user): Colocate all user methods

Moved user methods/extensions into one file. Tracked down `next method
called more than once` error and setting headers after their sent. Let
regular error handler handle api errors as well.

* feat(server.auth): Disable github account creation

We are no longer allowing account creation through github

* refactor(Auth): Move user identity link into models dir

* feat(Disable link account login): This removes the ability to use a linked account t

* feat(errorhandlers): Add opbeat, filter out handled error
2017-07-14 00:09:07 +05:30
Berkeley Martinez
36ce006aac fix(csp): ws connection during dev uses SYNC_PORT only (#14483) 2017-04-21 16:21:55 +05:30
Berkeley Martinez
f018cae686 Merge branch 'staging' into fix/update-config-for-debug-setups 2017-04-17 14:38:28 -07:00
ZZhaoTireless
45f1c92d79 Fix: replace all GoMix with Glitch 2017-03-23 22:26:45 -04:00
Mrugesh Mohapatra
566de3e3f2 fix: Update config to be flexible for host 2017-03-20 12:13:27 +00:00
Petr Gazarov
f159027025 Remove bower and port dependencies over to npm 2017-02-09 00:09:39 -05:00
Berkeley Martinez
f1d936198e feat(challenges): add backend challenge infrastructure (#11058)
* Feat: Initial backend view

* Feat: Refactor frame runner

* Feat: backend challenge submit runs tests

* Feat: Backend challenge request

* Feat: Whitelist hyperdev in csp

* Fix: Use app tests instead of challenge tests

* Feat: Allow hyperdev subdomains

* Fix(csp): allow hypderdev.space subdomains

* feat(challenge): submit backend

* feat: Add timeout to test runner (5 sec)

* chore(seed): Add more to test backend

* fix(csp): s/hyperdev/gomix/g

* fix(app): fix code mirror skeleton filepath

* fix(app): remove Gitter saga import

* fix(app): codemirrorskeleton does not need it's own folder
fix(app): cmk needs to work with Null types

* fix: No longer restart the browser when challenges change

* fix(app): Update jquery for challenges

* fix(seed): Remove to promise jquery call

* fix(lint): Undo merge error
undefined is no allowed

* fix(app): linting errors due to bad merge

* fix(seed): Remove old seed file
2017-01-26 23:07:22 -06:00
Mrugesh Mohapatra
1f67c72fc6 feat(user): Report profiles
This adds a simple email-based mechanism to report profiles for
abuse. An email with text from the report is sent to Free Code
Camp's support account with the reporter's account in copy. This
also adds the reporter's details to the report for follow ups.
2017-01-13 00:14:29 +05:30
Ivan Sebastian
59a0788dfa fix optimizely csp for script-src 2016-10-27 16:50:10 +07:00
systimotic
4e4a2d0277 Fix typo. errorHanlder -> errorHandler 2016-10-05 11:33:30 +02:00
Berkeley Martinez
a6f9e95ed8 Feat: Add react-hot-loader
Combine webpack and browser-sync on one port
2016-09-27 19:49:58 -07:00
Berkeley Martinez
98763f5fd0 Fix(routes): Hardern add-lang middleware against short urls 2016-09-09 00:39:03 -07:00
Berkeley Martinez
2e9b179626 Feature(challenges): Load and cache required files 2016-07-28 23:40:01 -07:00
Berkeley Martinez
5d94cb369d Feature(server): Add response type detecting to lang redirect 2016-07-28 23:40:01 -07:00
Berkeley Martinez
668bd74690 Fix(lint): Add import eslint and fix import errors 2016-07-28 23:40:01 -07:00
Berkeley Martinez
95aab958aa Feature(langauge): Make client history language aware
Remove need for language aware links
2016-07-28 23:40:01 -07:00
Berkeley Martinez
078560c3ba Add language routing 2016-07-28 23:40:01 -07:00
Berkeley Martinez
cc8b608cb9 Moves to next challenges 2016-07-28 23:39:17 -07:00
Berkeley Martinez
a0efb99ea8 Fix production webpack build 2016-07-28 23:39:17 -07:00
Berkeley Martinez
c77fcedcbb Only use file hashing in production 2016-07-28 23:39:17 -07:00
Berkeley Martinez
4e12c45057 Add webpack cold reloading
On changes to the react bundle
webpack will store the current redux state
in localStorage, waits (to allow the server to restart)
then refreshes the page. On page load, it checks if it
has state stored and loads it into the app.
2016-07-28 23:39:17 -07:00
Arsen Melikyan
510ce1fe83 Show flash message on every page when cheater is logged in 2016-07-28 17:32:54 +04:00
Quincy Larson
b6c8b52465 add optimizely and expand shop offerings 2016-07-07 23:50:55 -07:00