You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-29 22:41:11 +03:00
token fixes; code looks incomplete anyway
This commit is contained in:
@ -10,6 +10,10 @@
|
||||
|
||||
|
||||
class DovecotCrypt extends Crypt {
|
||||
|
||||
|
||||
private $errormsg = [];
|
||||
|
||||
private $salt_chars = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
||||
|
||||
|
||||
@ -83,7 +87,7 @@ class DovecotCrypt extends Crypt {
|
||||
return $password;
|
||||
}
|
||||
private function __md5_generate($plaintext) {
|
||||
return $password;
|
||||
return $plaintext;
|
||||
}
|
||||
private function __sha1_generate() {
|
||||
}
|
||||
@ -103,6 +107,9 @@ class DovecotCrypt extends Crypt {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function custom_hmac($algo, $data, $key, $raw_output = false) {
|
||||
$algo = strtolower($algo);
|
||||
$pack = 'H'.strlen($algo('test'));
|
||||
|
Reference in New Issue
Block a user