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

Block subsequent login attempt only for 1 second #2084

Merged
merged 1 commit into from Feb 17, 2016

Conversation

dvoytenko
Copy link
Contributor

No description provided.

@@ -684,7 +693,7 @@ export class AccessService {
// Login URL should always be available at this time.
const loginUrl = assert(this.loginUrl_, 'Login URL is not ready');
this.analyticsEvent_('access-login-started');
this.loginPromise_ = this.openLoginDialog_(loginUrl).then(result => {
const thisLoginPromise = this.openLoginDialog_(loginUrl).then(result => {
Copy link
Member

Choose a reason for hiding this comment

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

why thisLoginPromise? can you switch to just const loginPromise ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@erwinmombay
Copy link
Member

@dvoytenko minor nit, otherwise LGTM

dvoytenko added a commit that referenced this pull request Feb 17, 2016
Block subsequent login attempt only for 1 second
@dvoytenko dvoytenko merged commit 88b0e64 into ampproject:master Feb 17, 2016
@dvoytenko dvoytenko deleted the access43 branch February 17, 2016 23:20
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.

None yet

2 participants