Skip to content

Commit

Permalink
Save username instead of password in database when using IMAP auth
Browse files Browse the repository at this point in the history
Close #1118
  • Loading branch information
asuweb authored and endelwar committed Dec 12, 2018
1 parent c4beede commit 255573e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailscanner/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3263,7 +3263,7 @@ function imap_authenticate($username, $password)
$sql = sprintf(
"REPLACE INTO users (username, fullname, type, password) VALUES (%s, %s,'U',NULL)",
quote_smart($username),
quote_smart($password)
quote_smart($username)
);
dbquery($sql);
}
Expand Down

0 comments on commit 255573e

Please sign in to comment.