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