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

Remove email param in cross auth login #692

Merged
merged 1 commit into from
Mar 5, 2018
Merged

Conversation

luisrudge
Copy link
Contributor

@luisrudge luisrudge commented Mar 3, 2018

fix #691

@luisrudge luisrudge added this to the v9.3.3 milestone Mar 3, 2018
@@ -43,9 +43,12 @@ CrossOriginAuthentication.prototype.login = function(options, cb) {
var _this = this;
var theWindow = windowHelper.getWindow();
var url = urljoin(this.baseOptions.rootUrl, '/co/authenticate');
options.username = options.username || options.email;
delete options.email;
Copy link
Member

Choose a reason for hiding this comment

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

Why move the code up here? Just so it email can be deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

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

OK

@luisrudge luisrudge merged commit 4d352f2 into master Mar 5, 2018
@luisrudge luisrudge deleted the fix-clear-email-param branch March 5, 2018 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

login() with email causes /authorize error
2 participants