getting-things-gnome / GTGOnline

An Online Application for Getting Things Gnome!
21 stars 7 forks source link

API: register a new account #8

Closed Kernald closed 10 years ago

Kernald commented 10 years ago

Add a method to create a new account directly from the API, allowing any app to create an account without redirecting the user to the website.

parinporecha commented 10 years ago

@Kernald : Currently when a user tries to register on GTGOnline, we check if he has a gravatar profile or not (So as to avoid asking his first and last name). I think adding such method to the API (checking for gravatar, if not found, respond with an error message asking for name. Because we can't allow blank names) will complicate things on the app-side ( Please correct me if I am wrong ). So, I'm thinking of a simplified version of registration method in which the app will have to compulsorily ask the first and last name of the user irrespective whether he has gravatar profile or not. So, in this method - email, password, first name, last name will be mandatory fields Is it okay ?

Kernald commented 10 years ago

Waiting for the answer from Gravatar will obviously be weird for the user (not really complicated to implement, but weird for the user). Asking for a first name and last name would be better, I think.

parinporecha commented 10 years ago

Method 'register' added to the API in commit f6747f2f7fdeceb1a324c717c6b9a17ddd14ef22 Please see the updated docs Closing this issue

Kernald commented 10 years ago

I still have two remarks on this one:

parinporecha commented 10 years ago

You were right. I've changed the method to POST :-) I'll change the response body to the auth token when it is implemented

Kernald commented 10 years ago

Great! it begins to look good :-)