...
|
...
|
@@ -216,7 +216,18 @@ class Home extends Base { |
|
|
*/
|
|
|
public function check(){
|
|
|
|
|
|
$lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`'));
|
|
|
$lists = db()->all(emailSql::getValues(['email'=>web_request_emails()],'`id`,`pwd_error`,`email`,`password`,`imap`'));
|
|
|
foreach ($lists as $k=>$list){
|
|
|
$mail = new \Lib\Mail\Mail($list['email'],base64_decode($list['password']),$list['imap']);
|
|
|
|
|
|
// 2次登录请求
|
|
|
if($mail->login()!==1){
|
|
|
if($mail->login()!==1){
|
|
|
$lists[$k]['pwd_error'] = 1;
|
|
|
}
|
|
|
}
|
|
|
$mail = null;
|
|
|
}
|
|
|
|
|
|
return array_column($lists,'pwd_error','email');
|
|
|
|
...
|
...
|
|