kolibri: Create Account - Existing username error isn't displayed as expected
Observed behavior
Scenario: Username is already taken - I can fill the same name of already existing username (juan) (Step 1) and I don’t see error message, and I can continue to the next screen with Gender and Birth Year (Step 2) and from there if I click Continue, nothing happens and if I click the browser Back button, just then the error message for already existing username is seen.
Expected behavior
The error message for already existing username is seen on Step 1, after the username field has the same input as an already existing user.
User-facing consequences
On Step 2 screen it is not clear for the user what exactly is happening.
Errors and logs
…
Steps to reproduce
Preconditions: There must be an already existing account.
- Click Create an account button on the login page
- On Step 1 page fill the Full name, Username and password field as for Username field use the same input as the one with the already existing account.
- Click Continue button
- On Step 2 page select Gender and/or Birth year
- Click Continue button
Context
Kolibri 0.14.3 OS: Raspbian GNU, Linux 10 Raspberry Pi 4 Chrome (Last version) + FF (Last version)
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 21 (18 by maintainers)
Sounds like a good plan! I think this new endpoint could be placed in the the
core
app in this module:https://github.com/learningequality/kolibri/blob/b49b908d4b22de85234c4e67114626bd4947d6d1/kolibri/core/auth/api_urls.py#L18-L25
When doing this
username_exists
check, make sure to keep thefacility
in mind. A Kolibri device can have multiple facilities in it, and it is okay for different facilities to haveusernames
in common.So if I try to create an account in Facility A with username
user_1
, I should not get blocked if Facility B already has that username reserved.No, “juan” isn’t the username I used during setup. For the setup I used metodimilev 😃