README.md 764 Bytes
Newer Older
1
# Purism's username policy for wordpress
Noe Nieto's avatar
Noe Nieto committed
2

3 4 5 6 7 8 9 10 11 12
[![pipeline status](https://source.puri.sm/liberty/ldh_wp_username_policy/badges/master/pipeline.svg)](https://source.puri.sm/liberty/ldh_wp_username_policy/commits/master)
[![coverage report](https://source.puri.sm/liberty/ldh_wp_username_policy/badges/master/coverage.svg)](https://source.puri.sm/liberty/ldh_wp_username_policy/commits/master)

This is a Wordpress plugin that implements rules for usernames of the liberty platform. These rules are as follows:

* Remove all characters after the first "@"
* Remove all remaining non-alphanumeric characters
* If username starts with a numeral, prepend an "x"
* Set all letters to lowercase
* Other Wordpress logic should apply (e.g. avoid duplicates by adding a number)