rox icon indicating copy to clipboard operation
rox copied to clipboard

Confusing message when username is already taken

Open arp242 opened this issue 5 years ago • 5 comments

I wanted to sign up, but guess I already did at some time in the past as my username arp242 is already taken.

However, the message that gets displayed is:

Please choose a different username that is at least 4 and maximum 20 characters long. They have to start with a letter, they have to end with either a letter or a number. In between the following characters may be used: . _ -

Which makes it sound like my username doesn't meet the character requirements.

I had to check the web inspector to verify that this is because the username is already taken; https://www.bewelcome.org/signup/checkhandle?field=&value=arp242 returns:

{"value":"arp242","valid":false,"message":"Username arp242 is already in use!"}

It would be much clearer if it would just display Username arp242 is already in use!


As an aside, it took me a bit to parse that message in the first place; IMO it would be better to display just what is wrong, rather than list all the requirements (e.g. "must be at least 4 characters", "must end in a letter or number", etc.)

arp242 avatar May 17 '20 21:05 arp242

I expected this to be fixed on https://beta.bewelcome.org/signup/1 but unfortunately that's not the case. I check.

thisismeonmounteverest avatar May 18 '20 13:05 thisismeonmounteverest

@thisismeonmounteverest Looks like the correct translation identifier is used, signup.error.username.taken, but in the migration 20181020153946_add_translation_ids, a different string (the one about the character requirements) has been inserted. Let me know if you think it's worth a PR to change the migration. I guess the main task is to edit it in the language text files that are imported.

tanerkay avatar Jun 18 '20 23:06 tanerkay

@tanerkay I checked the database on production it shows the correct text. So something else is not working as expected. The migration is only a vehicle to quickly bring the new translation items into the database and is obsolete afterwards; so no need to fix that.

thisismeonmounteverest avatar Jun 21 '20 08:06 thisismeonmounteverest

If it can be any use, I checked the wordcode signup.error.username.taken in the translation tool and the wrong text is displayed in the English version (it's the text about syntax rules). I can ask in the translators group for somebody with English rights to change it, if that's enough to solve the issue.

ghost avatar Jan 27 '21 17:01 ghost

This issue can be closed :) image

tillwenke avatar Jul 27 '22 19:07 tillwenke