Use BCrypt costs '9' for MFA backup codes
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 May 2021 10:28:42 +0000 (12:28 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 12 May 2021 10:29:16 +0000 (12:29 +0200)
Resolves #4206

wcfsetup/install/files/lib/system/user/multifactor/BackupMultifactorMethod.class.php

index b6948397108a64aa53f6d2bfbe1809e8e4f45a00..41e787223d47dd478a960ab99c621e30485c3205 100644 (file)
@@ -60,7 +60,7 @@ final class BackupMultifactorMethod implements IMultifactorMethod
 
     public function __construct()
     {
-        $this->algorithm = new Bcrypt();
+        $this->algorithm = new Bcrypt(9);
     }
 
     /**