Closed OlegKlimenko closed 6 years ago
Try to register a user with name 'admin123' - you will see the bug. It happens because on the server side I am not allowing to register user with 'admin' in name and I am returning this response if 'admin' in username:
{'status': 400, 'detail': 'not allowed username', 'data': {}}
Please handle it with a message "you are not allowed to register this username."
p.s. In general, it would be great if on the client side you will handle this also, without pinging the server
Not allow to register user with 'admin' in name
Try to register a user with name 'admin123' - you will see the bug. It happens because on the server side I am not allowing to register user with 'admin' in name and I am returning this response if 'admin' in username:
{'status': 400, 'detail': 'not allowed username', 'data': {}}
Please handle it with a message "you are not allowed to register this username."
p.s. In general, it would be great if on the client side you will handle this also, without pinging the server