Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Create user and login with password #30

Merged
merged 54 commits into from
Jan 14, 2017
Merged

[WIP] Create user and login with password #30

merged 54 commits into from
Jan 14, 2017

Conversation

TimMikeladze
Copy link
Member

My apologies for the giant PR.

This PR introduces the core accounts package. It provides the client and server side logic for user creation and authentication.

TimMikeladze and others added 30 commits November 21, 2016 18:43
chore(flow): Added type declarations for accounts and made eslint and flow check happy
Server side Accounts.createUser
* Setup jest
Copy link

@grantga grantga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good in my quick review.

const nextState = state;
switch (action.type) {
case LOGIN: {
break;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these still to do on purpose?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. The LOGINcase can be removed. SET_USER still needs to be filled out for reactivity in the ui when the user is logged in.

@coveralls
Copy link

Coverage Status

Coverage increased (+6.3%) to 82.877% when pulling 86594ec on devel into c7929a0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+9.3%) to 85.897% when pulling ecc413d on devel into c7929a0 on master.

return this.instance.addEmail(userId, newEmail, verified);
},
removeEmail(userId: string, newEmail: string): Promise<void> {
return this.instance.addEmail(userId, newEmail);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be this.instance.removeEmail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eagle eye. Good catch. Will fix.

return this.instance.addEmail(userId, newEmail);
},
verifyEmail(userId: string, email: string): Promise<void> {
return this.instance.addEmail(userId, email);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.instance.verifyEmail?

@coveralls
Copy link

Coverage Status

Coverage increased (+9.3%) to 85.897% when pulling 2546ed7 on devel into c7929a0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+6.9%) to 83.436% when pulling 09af465 on devel into c7929a0 on master.

…dded reduxLogger to client config to allow logging
@coveralls
Copy link

Coverage Status

Coverage increased (+5.1%) to 81.707% when pulling 6261ad6 on devel into c7929a0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.1%) to 80.723% when pulling 4fe8cc7 on devel into c7929a0 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+7.2%) to 83.735% when pulling 0674d16 on devel into c7929a0 on master.

@TimMikeladze TimMikeladze merged commit 78245a1 into master Jan 14, 2017
Aetherall pushed a commit that referenced this pull request Mar 11, 2018
Aetherall pushed a commit that referenced this pull request Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants