hypothesis / hypothesis/h

Double error message when trying to register account with blacklisted username

Open
#3,631 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3.2k
Forks
459
Avg merge
27d 1h
Merged PRs (30d)
1

Description

### Steps to reproduce
1. To to `/register`
2. Enter `twitter` as the username for the new account, and enter a valid email and password
3. Submit the form
### Expected behaviour

A single error message. "An account with this username already exists" is not really correct but will do.
### Actual behaviour

"An account with this username already exists" error message is shown twice.

![screenshot from 2016-07-27 12-31-27](https://cloud.githubusercontent.com/assets/22498/17174040/62cfcd50-53f6-11e6-869e-1a44229a0c02.png)

This does not seem to happen when trying to register an account for a non-blacklisted username where an account with the username actually does already exist - you'll get the error message only once.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `/register` entry point and reproduce the blacklisted-username case with `twitter`, then compare it with registration using an ordinary existing username. Trace the registration validation and error-display flow to identify why the same message appears twice. Done means the blacklisted-username case displays one error message, without changing the stated behavior for ordinary duplicate usernames.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.