@@ -835,8 +835,10 @@ public function setAuthMethod($name, $callback, $prepend = true)
835
835
*/
836
836
protected function authDigestMD5 ($ uid , $ pwd , $ authz = '' )
837
837
{
838
+ /* TODO trigger deprecation error in 2.0.0 and remove authDigestMD5() in 3.0.0
838
839
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method DIGEST-MD5' .
839
840
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
841
+ */
840
842
841
843
if (PEAR ::isError ($ error = $ this ->put ('AUTH ' , 'DIGEST-MD5 ' ))) {
842
844
return $ error ;
@@ -890,8 +892,10 @@ protected function authDigestMD5($uid, $pwd, $authz = '')
890
892
*/
891
893
protected function authCRAMMD5 ($ uid , $ pwd , $ authz = '' )
892
894
{
895
+ /* TODO trigger deprecation error in 2.0.0 and remove authCRAMMD5() in 3.0.0
893
896
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method CRAM-MD5' .
894
897
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
898
+ */
895
899
896
900
if (PEAR ::isError ($ error = $ this ->put ('AUTH ' , 'CRAM-MD5 ' ))) {
897
901
return $ error ;
@@ -933,8 +937,10 @@ protected function authCRAMMD5($uid, $pwd, $authz = '')
933
937
*/
934
938
protected function authLogin ($ uid , $ pwd , $ authz = '' )
935
939
{
940
+ /* TODO trigger deprecation error in 2.0.0 and remove authLogin() in 3.0.0
936
941
trigger_error(__CLASS__ . ' (' . $this->host . '): Authentication method LOGIN' .
937
942
' is no longer secure and should be avoided.', E_USER_DEPRECATED);
943
+ */
938
944
939
945
if (PEAR ::isError ($ error = $ this ->put ('AUTH ' , 'LOGIN ' ))) {
940
946
return $ error ;
0 commit comments