~roadmr/canonical-identity-provider:better-username-errors

Last commit made on 2020-07-07
Get this branch:
git clone -b better-username-errors https://git.launchpad.net/~roadmr/canonical-identity-provider
Only Daniel Manrique can upload to this branch. If you are Daniel Manrique please log in for upload directions.

Branch merges

Branch information

Name:
better-username-errors
Repository:
lp:~roadmr/canonical-identity-provider

Recent commits

c72a7fc... by Daniel Manrique

Review comments

058dd4d... by Daniel Manrique

Test changes for forms

99cfade... by Daniel Manrique

Express username validation with Django validators.

This allows much nicer, less generic error messages in the username
field which is very confusing for users.

9b3a6cc... by Daniel Manrique

Account creation form: Render all username validation errors with validation message formatting

67d722a... by Daniel Manrique

Visual tweaks to username format instructions.

* move instructions below the field
* fix css, nesting and styling
* simplify length instructions

Merged from https://code.launchpad.net/~roadmr/canonical-identity-provider/+git/canonical-identity-provider/+merge/386908

edf2dca... by Daniel Manrique

Visual tweaks to username format instructions.

* move instructions below the field
* fix css, nesting and styling
* simplify length instructions

3c85227... by Daniel Manrique

Explain the required username format in the registration form.

The intent is to explain to people what the format is BEFORE they try (and usually, fail) to get it right on the first try with no instructions.

If the form is submitted and the username has an error, we will no longer show the instructions because the error message should tell people what they did wrong so the instructions are redundant.

This can be enabled/disabled by USERNAME_SHOW_REQUIREMENTS feature flag, in case a lot of people counter-complain that it looks ugly/bad.

Merged from https://code.launchpad.net/~roadmr/canonical-identity-provider/+git/canonical-identity-provider/+merge/386845

7b17c61... by Daniel Manrique

periods at end of sentences.

0528063... by Daniel Manrique

template changes

942db33... by Daniel Manrique

Test registration view with username requirements