Skip to content
Snippets Groups Projects
Commit 69858301 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Handle invalid credentials in imapservice

Fixes #401
parent dd2ab2e7
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -889,8 +889,7 @@ var unauthenticated_command_handlers = { ...@@ -889,8 +889,7 @@ var unauthenticated_command_handlers = {
client.socket.send("+\r\n"); client.socket.send("+\r\n");
line=client.socket.recvline(10240, 1800); line=client.socket.recvline(10240, 1800);
args=base64_decode(line).split(/\x00/); args=base64_decode(line).split(/\x00/);
if(!login(args[1],args[2])) { if(args === null || (!login(args[1],args[2]))) {
// log(LOG_INFO, format("Attempted login: '%s', pw: '%s'", args[1], args[2]));
tagged(tag, "NO", "No AUTH for you."); tagged(tag, "NO", "No AUTH for you.");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment