OlegKlimenko / Plamber-Android

The Android application for Plamber project.
https://plamber.com.ua/
Apache License 2.0
1 stars 0 forks source link

Not allow to register user with 'admin' in name #60

Closed OlegKlimenko closed 6 years ago

OlegKlimenko commented 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

OlegKlimenko commented 6 years ago

Not allow to register user with 'admin' in name