You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-08-10 22:31:47 +02:00
Don't check empty passwords against HIBP
This commit is contained in:
@@ -21,6 +21,9 @@ function sha1(string) {
|
||||
}
|
||||
|
||||
function hibpCheck(pwd) {
|
||||
if (pwd === null || pwd === undefined || pwd.length === 0) {
|
||||
return;
|
||||
}
|
||||
// We hash the pwd first
|
||||
sha1(pwd).then(function(hash){
|
||||
// We send the first 5 chars of the hash to hibp's API
|
||||
|
Reference in New Issue
Block a user