Commit Graph

104 Commits

Author SHA1 Message Date
e60ff3775b fix(User): Unify old remove save hook with before save
Since we are no longer using remote api to create accounts those hooks
are useless. Unifying them will ensure they apply to all
save/update/creates
2018-01-02 23:38:01 +05:30
5ea434c429 fix(User): Email is off the constructor 2018-01-02 23:38:01 +05:30
0682ef33db fix(User.requestAuthEmail): Conditionally check for email availibility
Only check if email is available if it is not already associated with
this account
2018-01-02 23:38:01 +05:30
60e2baf307 feat(User): Refactor wait period logic 2018-01-02 23:38:01 +05:30
b6f621fee3 fix(User.updateEmail): Reduce code logic. defer promises 2018-01-02 23:38:01 +05:30
750c9f1eab fix(passwordless): Reduce db calls, run in parallel
Adds validations, reduces the number of database calls, separates
concers. reduces logic
2018-01-02 23:38:01 +05:30
44c2eb65d5 refactor(User): Make requestAuthEmail into instance method 2018-01-02 23:38:01 +05:30
412fddd065 fix(models/User): Remove dup before create 2018-01-02 23:38:01 +05:30
2e410330f1 Feat(Challenges): no js preview (#16149)
* fix(files): Decouple files from challenges

* feat(server/react): Remove action logger

use redux remote devtools instead!

* feat(Challenges): Disable js on edit, enable on execute

* feat(Challenge/Preview): Show message when js is disabled

* refactor(frameEpic): Reduce code by using lodash

* feat(frameEpic): Disable js in preview by state

* feat(frameEpic): Colocate epic in Challenges/redux

* refactor(ExecuteChallengeEpic): CoLocated with Challenges

* refactor(executeChallengesEpic): Separate tests from main logic

* feat(Challenge/Preview): Update main on edit

* feat(frameEpuc): Replace frame on edit/execute

This allows for sandbox to work properly

* fix(Challenges/Utils): Require utisl

* revert(frameEpic): Hoist function to mount code in frame

* fix(frameEpic): Ensure new frame is given classname

* feat(executeChallenge): Update main on code unlocked

* fix(frameEpic): Filter out empty test message

* fix(Challenge/Preview): Remove unnessary quote in classname

* feat(codeStorageEpic): Separate localstorage from solutions loading

* fix(fetchUser): Merge user actions into one

prefer many effects from one action over one action to one effect

* fix(themes): Centralize theme utils and defs

* fix(entities.user): Fix user reducer namespacing

* feat(frame): Refactor frameEpic to util

* feat(Challenges.redux): Should not attempt to update main from storage

* fix(loadPreviousChallengeEpic): Refactor for RFR

* fix(Challenges.Modern): Show preview plane
2017-12-07 18:13:19 -06:00
885d5916c0 fix: Update email action should hit API 2017-12-07 00:00:02 +05:30
af43360027 fix(auth): Add keyword in email support for passwordless 2017-11-29 23:11:24 +05:30
69fa4b3098 Merge pull request #15892 from raisedadead/feat/lb3-upgrade
feat(LoopBack): Upgrade to LoopBack 3
2017-11-27 13:33:01 -08:00
187dbdfc92 fix(models): Update remote method definitions 2017-11-16 11:34:50 +05:30
e652ad934a fix: Email should be switched before confirm 2017-11-01 01:43:22 +05:30
5e61fd53d1 fix(user): Add update new-email placeholder property 2017-10-28 00:24:27 +05:30
9ccfe4f72c refactor: Update methods to sensible names 2017-10-28 00:24:27 +05:30
2a3703b95a fix(user): Add LoopBack email validation once again
Earlier we did not need emails for everyone, this is not the case
anymore. We now require emails, and all other auth mechanisms are
now deprecated for new users.
2017-10-28 00:24:27 +05:30
fe059c224e fix(User): Naming convention updates 2017-10-28 00:24:26 +05:30
d77e9fd411 fix(user): Remove remote method on user create 2017-09-17 15:27:45 +05:30
5e86b25a69 fix(auth): Remove reset password endpoint 2017-09-17 14:54:48 +05:30
ab93109828 fix(auth): Fix merge errors from rebase 2017-09-01 17:32:58 -07:00
2321f7b326 feat(server): Add URL utils to compute server URL, HOST, PORT, etc. 2017-09-01 17:32:20 -07:00
d313ab68e4 fix(email): Error messages for updateEmail API 2017-09-01 17:23:40 -07:00
3f332fc1f0 fix: Add error handling and refactoring of Observable methods 2017-09-01 17:21:02 -07:00
a426ff7ef9 fix(email): allow sender email var for development
Allows setting the SES_ID, SES_SECRET and EMAIL_SENDER values
2017-09-01 17:21:02 -07:00
0ce30409c0 refactor(code): cleanup and rebase 2017-09-01 17:21:02 -07:00
5c56a1e78c Update email views and notifications 2017-09-01 17:15:26 -07:00
f3804bb553 chore(passwordless): Update to freeCodeCamp 2017-09-01 17:15:26 -07:00
b32e2102ac Remove reset-password logic 2017-09-01 17:15:26 -07:00
239313cb0b Remove sign up page and update button styles 2017-09-01 17:15:26 -07:00
fd442c55bb Remove error catch and use update method 2017-09-01 17:15:26 -07:00
26c1389c3a Donot render per request email 2017-09-01 17:15:26 -07:00
19e5ff537e Fix indenting and remove isDev from wait time. 2017-09-01 17:15:26 -07:00
e006f5c97d Optimize code and streamline flow.
- Optimize code and streamline flow.
- Add return statements for error display.
- Invalidate status vars and TTLs on User Model.
- Build Observable for findOrCreate
2017-09-01 17:15:26 -07:00
f8c818e7e7 Implement passwordless login
* Created a new rest API to create and save a temporary token that
  can be exchanged for a access token.
* Updated the sign in view
* Add email template for sign in links
* Add route to request a access token and login user
* Make the email views conistent
2017-09-01 17:14:43 -07:00
dcfe18d5d5 refactor: Replace .com with .org 2017-08-26 00:07:44 +02:00
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
566de3e3f2 fix: Update config to be flexible for host 2017-03-20 12:13:27 +00:00
3ed485b14a chore(common): updated common to freeCodeCamp 2017-01-14 19:49:01 -05:00
79a8c412f1 change node-uuid to uuid 2016-12-30 16:47:09 -06:00
94c4c846e9 Feature(theme): add nightmode react logic
We wait to load the user before applying the theme
as we will begin aggressively caching most of the react
app routes. This means we can not depend on user data to
determine.
2016-08-06 07:24:10 -07:00
9a2dfca0fc Feature(settings): complete settings page logic 2016-07-28 23:40:01 -07:00
85a1212da5 Error messages for invalid tokens from email links
This commit, adds error messages for users hiting the confirm
endpoint with invalid, or expired tokens from emailed links.
2016-07-12 11:46:11 +00:00
546737e6be fix password validate crash 2016-06-23 00:55:15 +05:30
bbcadd1fc5 fix a typo in notification 2016-06-08 01:13:11 -07:00
e29a2a9716 feature(email): add ability to verify current email 2016-06-02 15:23:49 -07:00
942962fa0f Add prod urls to verify emails 2016-06-02 13:49:34 -07:00
564f4c1180 Update email info copy 2016-06-02 13:48:56 -07:00
ff4dfb09da Add email verification and notifications
This commit
- [x] Fixes the flash notice color (Trivial)
- [x] Adds flash message for user with no email.
- [x] Adds checks to see if user's email is verified, and displays corresponding notification.
- [x] Adds email templates.
2016-06-01 08:34:34 +00:00
ee2e0e290f Merge branch 'fix/theme-flash' of https://github.com/BerkeleyTrue/FreeCodeCamp into BerkeleyTrue-fix/theme-flash
Conflicts:
	common/models/user.js
2016-05-12 21:28:29 -07:00