mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-11-06 00:18:27 +00:00
[Web] Mailbox protocols do not limit app passwords
This commit is contained in:
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}')));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user