completed Existing users.

nate
@nate
9 years ago
917 posts
The way proxima works it lets you create an account very easily. That's awesome. Is there a method that checks for existing users?

I was thinking if the email address is included when signing up that it could automatically check for an existing user. And if there is one then they just get logged in and any new info sent would be added to the user table.
updated by @nate: 03/21/15 09:43:00PM
brian
@brian
9 years ago
10,148 posts
Natedogg265:
The way proxima works it lets you create an account very easily. That's awesome. Is there a method that checks for existing users?

You could try a signup - if the email already exists you'll get a 400 "account with user_email already exists".

Quote:
I was thinking if the email address is included when signing up that it could automatically check for an existing user. And if there is one then they just get logged in and any new info sent would be added to the user table.

We definitely would not want to auto login without a password - that would be a big security hole :)

So right now you could try to signup - if you get a 400, create the account, otherwise login.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
9 years ago
917 posts
I see you're preventing existing users from creating a new account. It might be helpful to return the _id so we can log in. A newly installed app won't have the exiting _id.

I guess the developer can do this but currently we would have to go around proxima because there is no valid session.
updated by @nate: 01/31/15 10:59:01PM
brian
@brian
9 years ago
10,148 posts
Natedogg265:
I see you're preventing existing users from creating a new account. It might be helpful to return the _id so we can log in. A newly installed app won't have the exiting _id.

Yeah this could be helpful - I will check it out.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
9 years ago
917 posts
Should I go around proxima to get the existing user_id? Or is there an existing method I should use?
brian
@brian
9 years ago
10,148 posts
Natedogg265:
Should I go around proxima to get the existing user_id? Or is there an existing method I should use?

This should be working now in ProximaUser 1.0.3 - you'll get the _id and location back if you try to create an account and the username/email address already exists. Update and let me know if that works for you.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
nate
@nate
9 years ago
917 posts
I had to reinstall my site. When I did, this stopped working. I'm using the latest version.

Tags