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.

  1. Click Create an account button on the login page
  2. 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.
  3. Click Continue button
  4. On Step 2 page select Gender and/or Birth year
  5. 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)

Most upvoted comments

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 the facility in mind. A Kolibri device can have multiple facilities in it, and it is okay for different facilities to have usernames 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.

@metodimilevqa , is the juan username the same one you made during the Setup Wizard? It’s a known issue that if you try to create a new user with the superuser’s name, you will not see an error message inside the form.

However, Kolibri should show some kind of full-page error message, instead of nothing happening after you click Continue.

No, “juan” isn’t the username I used during setup. For the setup I used metodimilev 😃