1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-24 19:33:07 +01:00

Do not fetch from mailboxes with empty password

This commit is contained in:
FreeScout 2020-03-28 20:44:51 -07:00
parent 015c72292f
commit b4d8c82e04

View File

@ -125,7 +125,11 @@ class Mailbox extends Model
*/
public function setInPasswordAttribute($value)
{
$this->attributes['in_password'] = encrypt($value);
if ($value != '') {
$this->attributes['in_password'] = encrypt($value);
} else {
$this->attributes['in_password'] = '';
}
}
/**