Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F7285556
UserVerify.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
UserVerify.php
View Options
<?php
namespace
App\Jobs
;
use
App\Backends\IMAP
;
use
App\User
;
use
Illuminate\Bus\Queueable
;
use
Illuminate\Contracts\Queue\ShouldQueue
;
use
Illuminate\Foundation\Bus\Dispatchable
;
use
Illuminate\Queue\InteractsWithQueue
;
use
Illuminate\Queue\SerializesModels
;
class
UserVerify
implements
ShouldQueue
{
use
Dispatchable
;
use
InteractsWithQueue
;
use
Queueable
;
use
SerializesModels
;
protected
$user
;
public
$tries
=
5
;
/** @var bool Delete the job if its models no longer exist. */
public
$deleteWhenMissingModels
=
true
;
/**
* Create a new job instance.
*
* @param User $user The user to create.
*
* @return void
*/
public
function
__construct
(
User
$user
)
{
$this
->
user
=
$user
;
}
/**
* Execute the job.
*
* @return void
*/
public
function
handle
()
{
if
(!
$this
->
user
->
hasSku
(
'mailbox'
))
{
return
;
}
// The user has a mailbox
if
(!
$this
->
user
->
isImapReady
())
{
if
(
IMAP
::
verifyAccount
(
$this
->
user
->
email
))
{
$this
->
user
->
status
|=
User
::
STATUS_IMAP_READY
;
$this
->
user
->
status
|=
User
::
STATUS_ACTIVE
;
$this
->
user
->
save
();
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 17, 8:46 AM (21 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
941085
Default Alt Text
UserVerify.php (1 KB)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment