-
Notifications
You must be signed in to change notification settings - Fork 1
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
[EP-2362] Save contact info after sign up #1130
base: 2362-okta
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great! I have a few questions, but I don't want to block you so I will approve the PR.
@@ -1,4 +1,4 @@ | |||
<contact-info submitted="$ctrl.submitted" on-submit="$ctrl.onSubmit(success)"></contact-info> | |||
<contact-info submitted="$ctrl.submitted" on-submit="$ctrl.onSubmit(success)" donor-details="$ctrl.signUpDonorDetails"></contact-info> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is signUpDonorDetails
defined? Were you also meant to commit changes to the contactInfoModal.component.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is set in checkDonorDetails
if there was an error saving the donor details
on-sign-up="$ctrl.onSignUp(donorDetails)" | ||
on-sign-in="$ctrl.onSignIn()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to update the file src/common/services/session/sessionModal.tpl.html
as signUpModal is also used there
@@ -148,13 +148,36 @@ class SignUpModalController { | |||
} | |||
onSuccess(postData) | |||
} | |||
}, | |||
// TODO: make sure that this callback is only called after the sign up completes successfully | |||
postSubmit: (postData, onSuccess) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is fired after the Registration API is fired to Okta, but before registration is completed. I think that is okay, bt as you said, we will need to check
e146d50
to
5efb9d2
Compare
Changes
onStateChange
binding with dedicatedonSignUp
andonSignIn
bindingsI made this a PR instead of committing directly so it's easier for you to see what changed and see if I'm going in the right direction with this.