Details
Description
3scale API - POST '/admin/api/signup.xml' if the username parameter begins with '-' , then the following error is returned with a 422 Http Status code
<?xml version="1.0" encoding="UTF-8"?>
<errors>
<error>Users invalid</error>
<error>Username use only letters, numbers, and .-_@+ please.</error>
</errors>
The message is not consistent since it indicates the hyphen is allowed anywhere. However, hyphen ('-' ) is allowed except as the first character of the username
The same applies to email parameter begins with a hyphen .
Use case: A signup was done with username and email starting with a hyphen '-' .