summaryrefslogtreecommitdiff
path: root/lib/Multi/API.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-05-12 15:05:16 +0200
committerYorhel <git@yorhel.nl>2018-05-12 15:05:16 +0200
commita1171c294f3ada0ee59b7126aebe0a4872ee3d99 (patch)
treec357cb38e117e4a075da810e9587a544b56eea7f /lib/Multi/API.pm
parent1f0d541feae8ce2a715ff17068d5bc5712da69b9 (diff)
API: Make username in login command case-insensitive
https://vndb.org/t3599.201
Diffstat (limited to 'lib/Multi/API.pm')
-rw-r--r--lib/Multi/API.pm2
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);