diff options
author | Yorhel <git@yorhel.nl> | 2018-05-12 15:05:16 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2018-05-12 15:05:16 +0200 |
commit | a1171c294f3ada0ee59b7126aebe0a4872ee3d99 (patch) | |
tree | c357cb38e117e4a075da810e9587a544b56eea7f /lib/Multi | |
parent | 1f0d541feae8ce2a715ff17068d5bc5712da69b9 (diff) |
API: Make username in login command case-insensitive
https://vndb.org/t3599.201
Diffstat (limited to 'lib/Multi')
-rw-r--r-- | lib/Multi/API.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Multi/API.pm b/lib/Multi/API.pm index c9b2540d..985081bd 100644 --- a/lib/Multi/API.pm +++ b/lib/Multi/API.pm @@ -272,6 +272,8 @@ sub login { $c->{clientver} = $arg->{clientver}; cres $c, ['ok'], 'Login using client "%s" ver. %s', $c->{client}, $c->{clientver}; return; + } else { + $arg->{username} = lc $arg->{username}; } login_auth($c, $arg); |