Closed fisx closed 8 years ago
we already have usernameV
in Frontend.Validation
for user login. we need to add userFirstLastNameV
and change the name of usernameV
to userLoginV
for consistency.
before we get going with that: write a failing test case.
ok, after some testing:
[a-zA-Z]
. they will just pick what they find in the user name.so the task here is to filter special characters out of the first and last name before constructing the login.
rule for valid characters in
userFirstName
,userLastName
:everything goes!allowed c = ...
login nicks will be composed of small letters only; special characters are ignored.
(not sure: what's the current behavior?)current behavior: a-okay except the login construction does not filter invalid characters. see https://github.com/liqd/aula/issues/990#issuecomment-254502893 below.