Commit Graph

2 Commits

Author SHA1 Message Date
Guangcong Luo
817a3a9c41 Add Sentry to composer.json
Our Composer dependencies are all optional at the moment - Sentry is
only used in the live config file, and we stopped using Google's PHP API
because it was too buggy (we're calling out to Node instead).

(This also removes composer.lock; lockfiles are really unnecessary for
PS's use-case.)
2019-02-27 05:16:17 -05:00
Guangcong Luo
644d5ccf91 Support Google login (two-factor auth) (#999)
This doesn't support setting accounts up for Google login: that still
has to be manually done via the database by setting the email field to
`username@gmail.com@`, where the second `@` denotes that it's using
Gmail login.

If the email field does end in `@`, `getassertion` will note this by
sending `;;@gmail`, to convey that the server is expecting a Google
login token rather than a password.

Upon receiving `;;@gmail`, the client will replace the password box will
with a Google login button, and then send the resulting Google login
token to the server in the `password` field. The server will validate
the "password" using the Google server libraries, and otherwise handle
the login as normal.

Note that Google login requires various features that a paranoid person
might disable; most notably 3rd-party cookies.

Fixes Zarel/Pokemon-Showdown#3394
2017-09-13 16:20:38 -04:00