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

Clarify purpose of user's email during registration #567

Open
tobil4sk opened this issue Oct 1, 2022 · 13 comments
Open

Clarify purpose of user's email during registration #567

tobil4sk opened this issue Oct 1, 2022 · 13 comments

Comments

@tobil4sk
Copy link
Member

tobil4sk commented Oct 1, 2022

When a user is creating an account, we should make it clear that the email they give will be displayed publicly. Right now, the prompt just says:

Email:

Also, I don't think there is a check to make sure that emails are unique.

@Simn
Copy link
Member

Simn commented Oct 2, 2022

Where are we showing email addresses publicly? Because I don't think we should do that...

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 2, 2022

Whenever someone runs:

haxelib user ...

To be honest, if this is the only place, we could just change this on the server right now and have it send an empty string instead of the actual email whenever someone runs haxelib user. I just assumed this was there so that people could contact library authors, but I guess if we're gonna allow that, it should probably be made optional anyway.

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

@Simn So it looks like it should be simple enough to patch this. Old clients are still going to show a "Mail: " line when running haxelib user however. So we can either send null in place of the email address, or something more descriptive so it's clear that it wasn't an error, like maybe (private) or something like that.

@Simn
Copy link
Member

Simn commented Oct 7, 2022

Sounds good to me!

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

Should we also handle this for the legacy server? I know technically it's meant to be left as is, but perhaps it makes sense to change it in this case. Also it might be good for someone who knows more about the website to double check whether the email is not available in any other way. The email seems to be hashed with md5 when getting a list of users for the users page, I'm not sure if that ever ends up getting sent to the client.

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

The server seems to be still sending the email addresses with haxelib user. Does the server need to be updated manually @andyli?

@andyli
Copy link
Member

andyli commented Oct 7, 2022

The development branch here get deployed to https://development-lib.haxe.org/. You may test it with haxelib -R https://development-lib.haxe.org ... first. If everything's alright, merge into master and it will be deployed to https://lib.haxe.org/.

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

Ah, I see. That is useful to know. This change is really small, and just substitutes the user's email for a "(private)" string. It seems to work:

> haxelib -R https://development-lib.haxe.org user ncannasse
Id: ncannasse
Name: Nicolas Cannasse
Mail: (private)
Libraries: 
  format
  dbadmin
  hscript
  ...

However, it seems like there are other unmerged changes in development that are missing from master. Is there anything else that should be checked before it is safe to merge?

@andyli
Copy link
Member

andyli commented Oct 7, 2022

However, it seems like there are other unmerged changes in development that are missing from master. Is there anything else that should be checked before it is safe to merge?

My commits that aren't master yet are mostly infra/CI related, shouldn't affect the server code. The other commits are mostly yours - please check with https://development-lib.haxe.org about your changes.

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

My changes were mostly client changes, so they shouldn't affect the server either. I did refactor and change some shared Data code but there are also more integration tests now which should cover those changes. The only potential problem is that I updated the client documentation in line with the client changes, so until the client update is released, the documentation will not be correct for the current latest release.

@andyli
Copy link
Member

andyli commented Oct 7, 2022

For the docs, make sure it mentions in what version the behaviour changed. It's needed anyway because we don't have seperate versioned docs here.

@tobil4sk
Copy link
Member Author

tobil4sk commented Oct 7, 2022

I made #571 to explain these differences in the documentation. Hopefully the way it is explained makes sense.

@tobil4sk
Copy link
Member Author

I've merged the doc changes so now it is clear what behaviour is different between versions. We should be ready to update the master branch now, I don't think there's anything else to worry about. I'll wait for the go-ahead, or feel free to do it if you prefer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants