murraycu / android-galaxyzoo

This Android app lets you classify Galaxy Zoo subjects. It is available in the Google Play Store: https://play.google.com/store/apps/details?id=com.murrayc.galaxyzoo.app . Try beta versions early here: https://play.google.com/apps/testing/com.murrayc.galaxyzoo.app . See also the iPhone app for Galaxy Zoo: https://github.com/murraycu/ios-galaxyzoo/
GNU General Public License v3.0
11 stars 13 forks source link

Allow user registration in the app #37

Open murraycu opened 7 years ago

murraycu commented 7 years ago

Currently, the Register button takes the user to this page on the website: https://www.zooniverse.org/accounts/register They then have to enter their password again to actually login (which happens inside the app). (Strangely, that page's Register button doesn't always show a result. It often succeeds silently, and you then see an error message, about the user already existing, if you press it again.)

If we did the registration from inside the app, we could use the api_key that we get from the successful registration, without asking the user for the password again.

That page seems to use websockets (wss:// POSTs) to register the user, but the similar login form on www.galaxyzoo.org uses simpler GET requests like so: https://www.galaxyzoo.org/_ouroboros_api/projects/galaxy_zoo/signup?username=someusername&email=something%40example.com&password=somepassword and returns a boolean success in a JSON response.

It seems unwise to use any server API for this unless we can be sure that it is a stable API, ideally with some documentation.