[Web] Mailbox protocols do not limit app passwords

This commit is contained in:
FreddleSpl0it committed 2026-11-05 12:46:22 +01:00
1 parent 3ffecc505e
commit 6a83b9e0f0
3 files changed
+126 -2

No files matched your search

@@ -0,0 +1,11 @@
<?php
// Stand-in for verify_hash() of data/web/inc/functions.inc.php, used by AppPasswordLoginTest only:
// app passwords are stored as {BLF-CRYPT} (bcrypt), the default scheme of hash_password().
if (!function_exists('verify_hash')) {
function verify_hash($hash, $password)
{
return str_starts_with($hash, '{BLF-CRYPT}') && password_verify($password, substr($hash, strlen('{BLF-CRYPT}')));
}
}