mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
20b866a784
When creating a new local user, there is a chance that, due to a copy & paste or typing error, whitespace will be introduced at the start or end of the username. This can lead to issues when trying to log in using the affected username, as such a condition can easily be overlooked - no user will be found in the database if entering the username without the aforementioned whitespace. This commit therefore strip()s the username string within routes/{admin,index}.py. The firstname, lastname and email strings within routes/{admin,index,user}.py are also strip()ped on this occasion. |
||
---|---|---|
.. | ||
lib | ||
models | ||
routes | ||
services | ||
static | ||
templates | ||
__init__.py | ||
assets.py | ||
decorators.py | ||
default_config.py | ||
swagger-spec.yaml |