Forum Activity for @brian

brian
@brian
02/11/16 12:45:31PM
10,167 posts

Login with user name or email instead of user id


Installation and Configuration

amartins:If I create a user I get the id in response, that works fine. But if user is created in website how can he/she login in my app without id? Because they don't know their IDs.

Ahh - got it - that makes sense. I just pushed out version 1.0.6 of the Proxima User module - you can now sign in by passing a "user_name", "user_email" OR "id" parameter, along with password. The response will now include the "_id" key - so even if they sign in using a user_name or user_email, you will now get the correct _id that should be used on the client.

Let me know if that works for you.

Hope this helps!
brian
@brian
02/11/16 12:36:21PM
10,167 posts

Login with user name or email instead of user id


Installation and Configuration

amartins:Thanks! Is because I need it for mobile app and users won't get access to their unique ID.
I need to register users from app also, I tested with Chrome Advanced Rest Client to test creating users, and it keeps creating same user over and over. Do you intent to prevent duplicate users creation? I mean, unique email and unique user name registration?

It already enforces unique name/email - make sure in the ACP -> Proxima -> Proxima Users -> Global Config that you have selected "Require unique "user_name" and "user_email" fields" - that will enforce the uniqueness on those keys.

When you register a user in your app you will get back an "_id" key - you will want to store that key on the device and use that going forward - that's what I would recommend.

Let me know if that helps.
updated by @brian: 02/11/16 12:36:48PM
brian
@brian
02/11/16 12:31:42PM
10,167 posts

audio_album_download_count or something like that


Using Jamroom

dim:Do I understand correctly, jrRating can not be used for the albums?

Correct - an album is a collection of ID's and doesn't have an idea of it's own.
brian
@brian
02/11/16 12:30:54PM
10,167 posts

Login with user name or email instead of user id


Installation and Configuration

Quick question for you - are you unable to store the user_id that is returned when the account is created? The reason I ask is that other user functionality (updating account, deleting account) need the ID for the update as well.
brian
@brian
02/11/16 12:17:42PM
10,167 posts

Login with user name or email instead of user id


Installation and Configuration

Actually looking at this this would be an easy update - give me a bit here and I can get it supported.
brian
@brian
02/11/16 12:16:32PM
10,167 posts

Login with user name or email instead of user id


Installation and Configuration

amartins:I need to login with username or user email and password instead of using user id and password: is there a way to achieve this?

Welcome to Jamroom!

It's best if you can use the ID - this let's the core lookup the account very quickly - otherwise it has to "search" for an account with a matching user name to get the account info. Are you in a situation where you can't store the ID?

Thanks!
brian
@brian
02/11/16 12:06:23PM
10,167 posts

Lost comments


Using Jamroom

dim:
brian:do you mean after the user modifies an existing comment the comment is no longer visible?
No. It is not possible to modify an invisible comment.

OK - I will see if I can replicate here. We've not had anyone else report it, so it sounds like a very rare/corner case issue.
brian
@brian
02/11/16 12:02:15PM
10,167 posts

Sendy.co


Off Topic

It's still there:

https://www.jamroom.net/download

Just bookmark it - we're going to be simplifying some of the site pages, menus and links and highlighting our hosting more.

Thanks!
brian
@brian
02/11/16 11:35:27AM
10,167 posts

Lost comments


Using Jamroom

That doesn't help me - that could be completely unrelated. I am trying to get clarification on my last question for the specific scenario you outlined:

do you mean after the user modifies an existing comment the comment is no longer visible?

Thanks!
brian
@brian
02/11/16 11:34:11AM
10,167 posts

Sendy.co


Off Topic

You are not notified of every new post - you will be notified that there is a new post once - if you visit this thread again it will "reset", so the next new post will notify you again.
  268