Google Registration / Login

Our users are frequently experiencing an error when trying to login/register with their Google account:

[Site: sitename] Invalid provider_connection_token specified!
The is an intermediate page that is not supposed to be opened directly.

Here is a screenshot:
https://www.dropbox.com/s/u9solmjotnos04v/Screen shot 2015-02-25 at 10.50.20 AM.png?dl=0

If I refresh the page it usually lets me in. Any ideas on how to fix this?

Thanks

Best Answer

  • Bob_DamanBob_DamanMemberModerator
    edited March 2015 Answer ✓
    The problem might be due to multiple, unintentional clicks on the raw login button.
    Could you please try to add this JavaScript to your sourcecode?

    $("#google-login").on('click', function(){ var last_click = this.getAttribute ('data-click'); var this_click = new Date().getTime(); if (typeof last_click !== 'undefined') { if (this_click >= last_click && ((this_click - last_click) < 2000)) { return false; } } this.setAttribute ('data-click', this_click); return true; });

    This should prevent an unintentional double-click on the Google button.

Answers

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.