Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's a User? #40

Closed
brian-c opened this issue Jun 5, 2014 · 14 comments · Fixed by #570
Closed

What's a User? #40

brian-c opened this issue Jun 5, 2014 · 14 comments · Fixed by #570

Comments

@brian-c
Copy link
Contributor

brian-c commented Jun 5, 2014

Currently a user signs up with:

  • Username
  • Password
  • Real name (for recognition in papers, etc.)
  • "Send me beta announcements"

In #38 @edpaget suggested a separate key for URL. That gives us three "name" properties. Can we use the login for the URL, encoding what needs encoding when calling the API? URLs in the browser should render okay: #/ß®ï@ñ-¢.

@brian-c
Copy link
Contributor Author

brian-c commented Jun 5, 2014

Also: is sorta an issue-per-model a good way to talk about what's associated with what and what's returned with which requests?

@edpaget
Copy link
Contributor

edpaget commented Jun 5, 2014

Yeah that sounds good me. I'd be fine with using people's logins since they're already case insensitive. Do we currently permit white-space? I'd like to not have to have %20s all over URLs

@camallen
Copy link
Contributor

camallen commented Jun 6, 2014

Login names have spaces and other chars currently with validation only on uniqueness (case_insensitive) and presence. I confirmed there are users in home with spaces in their logins.

@edpaget
Copy link
Contributor

edpaget commented Jun 6, 2014

What if we silently convert whitespaces to underscores? Persist "cool user" as "cool_user", and when she tries to login do a login.gsub(" ", "_") before looking her up the database,

@camallen
Copy link
Contributor

camallen commented Jun 6, 2014

Yeah, we could even enforce no spaces for new users / updates to login names and use something like Ed suggested for migrated users

@brian-c
Copy link
Contributor Author

brian-c commented Jun 6, 2014

What about "¢øø£ usér" though?

@brian-c
Copy link
Contributor Author

brian-c commented Jun 6, 2014

I don't think this is a big deal by the way. Maybe we disallow spaces, but I'd hate to tell people they can't use accented characters. I think the number of weird characters in accounts and the number of people who actually look at URLs is small enough that we don't need to worry about this.

@edpaget
Copy link
Contributor

edpaget commented Jun 6, 2014

I'm cool with allowing any characters that don't have to be escaped to be
URL encoded. So all the crazy accents look fine to me.
On Jun 6, 2014 7:56 AM, "Brian Carstensen" notifications@github.com wrote:

I don't think this is a big deal by the way. Maybe we disallow spaces, but
I'd hate to tell people they can't use accented characters. I think the
number of weird characters in accounts and the number of people who
actually look at URLs is small enough that we don't need to worry about
this.


Reply to this email directly or view it on GitHub
#40 (comment).

@camallen
Copy link
Contributor

camallen commented Jun 6, 2014

+1 for not escaping chars in URL's.

@parrish
Copy link
Contributor

parrish commented Jun 6, 2014

Persist "cool user" as "cool_user", and when she tries to login do a login.gsub(" ", "_") before looking her up the database

"cool user" and "cool_user" can both exist in the database right now. That's not going to work.

Yeah, we could even enforce no spaces for new users / updates to login names and use something like Ed suggested for migrated users

I'm up for setting sane validations for new users. I'm just not sure how we can force changes to old users.

I'd love to get rid of some of the crazy values in that table though. If you're up for a laugh, go take a look at some of the weird junk in there.

@edpaget
Copy link
Contributor

edpaget commented Jan 15, 2015

@parrish brought this up at Standup today. What kind of user logins will we allow? I'm for downcased and no whitespace, but otherwise anything goes. When a migrated user signs on, we just prompt them to change their login name, while leaving their display name set to their old user name.

@edpaget edpaget modified the milestones: v0.0.6, v0.0.2 Jan 15, 2015
@parrish
Copy link
Contributor

parrish commented Jan 15, 2015

I think a set of restricted characters is fine too. At least ^ and @ since we're using those in Talk. Restricting @ would also prevent people from using their email addresses as their logins, which is not something most people want publicly visible.

@camallen camallen modified the milestones: Stargazing, v0.0.6 Feb 2, 2015
@chrislintott
Copy link
Member

Have we given up on shifting to allowing Facebook/Twitter/whatever logins? We’ve had that on our desirables list for a long while now.

On 15 Jan 2015, at 08:21, Michael Parrish notifications@github.com wrote:

I think a set of restricted characters is fine too. At least ^ and @ since we're using those in Talk.


Reply to this email directly or view it on GitHub.

@edpaget
Copy link
Contributor

edpaget commented Feb 3, 2015

Nope already support Facebook and google+ logins. We don't have twitter at
the moment since there isn't a way to get email from that.
On Feb 3, 2015 2:46 PM, "Chris Lintott" notifications@github.com wrote:

Have we given up on shifting to allowing Facebook/Twitter/whatever logins?
We’ve had that on our desirables list for a long while now.

On 15 Jan 2015, at 08:21, Michael Parrish notifications@github.com
wrote:

I think a set of restricted characters is fine too. At least ^ and @
since we're using those in Talk.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#40 (comment).

edpaget pushed a commit to edpaget/Panoptes that referenced this issue Feb 22, 2015
Remove login attribute from user model. Restrict user names to not allow
whitespace or the characters ($,@).

Closes zooniverse#544, Closes zooniverse#40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants