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:
parent
015c72292f
commit
b4d8c82e04
@ -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'] = '';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user