Google One Tap sign-in and sign-up

Mouth

Well-known member
Re: https://developers.google.com/identity/one-tap/web/

Suggest this be implemented on both the /login/ and /register/ pages.

one-tap_720.png
 
Last edited:
Upvote 51
One Tap is one of the most annoying things about visiting a site. And I have to imagine it makes things very easy for spammers to sign up and go wild.
Agreed. Gmail is the biggest source of spam we have. In the last 6 months or so I have 10,000 spam accounts from Gmail. These are accounts that have a valid email address as they responded to the Registration email, and are not on any Akismet or StopForumSpam blacklist. This is on a decent sized forum with 600,000 members. When we catch one we stick it in a custom user group instead of deleting it so they cannot just register again with the same account and then every few months I mass delete them. I ran a query against that group id just a week or two ago. This is the end of it that shows the totals.
Code:
select username,email from user where email like '%gmail.com' and usergroupid="65";

| Williamfek                                     | p.a.t.rik.s.85gr.o.bin.@gmail.com                             |
| JamesRag                                       | p.at.ri.k.s.8.5.g.ro.b.in.@gmail.com                          |
| DJVal                                          | rubbyroyd24@gmail.com                                         |
| adamaschvsa4415                                | adamastexxda@gmail.com                                        |
| Amandaoffevab                                  | amandaCoonoPem2@gmail.com                                     |
| johntexado9912                                 | masonlitleoz@gmail.com                                        |
| luisswitz9375                                  | luisswitz@gmail.com                                           |
+------------------------------------------------+---------------------------------------------------------------+
10804 rows in set (0.60 sec)
 
I think one can easily do it. You just need to add this in page container for guest users.

Code:
<script src="https://accounts.google.com/gsi/client" async></script>
<div id="g_id_onload" data-client_id="234431974483-chv6plvlgpdtuagl13i5dk188vrnqoqb.apps.googleusercontent.com"
data-login_uri="https://mpm.pm/register/connected-accounts/google/?setup=1" >
</div>

Just replace the client id and registration url with your own. This should do it.
 
I think one can easily do it. You just need to add this in page container for guest users.

Code:
<script src="https://accounts.google.com/gsi/client" async></script>
<div id="g_id_onload" data-client_id="234431974483-chv6plvlgpdtuagl13i5dk188vrnqoqb.apps.googleusercontent.com"
data-login_uri="https://mpm.pm/register/connected-accounts/google/?setup=1" >
</div>

Just replace the client id and registration url with your own. This should do it.
If it could be limited to the register/login page, that would be ideal. Probably just a matter of using a conditional to display it only on those pages.
 
Back
Top Bottom