19 declare(strict_types=1);
31 private readonly
string $current_email,
32 private readonly
string $new_email,
33 private readonly
int $created_timestamp,
52 return $this->current_email;
57 return $this->new_email;
62 return $this->created_timestamp;
73 && time() < $this->created_timestamp + $this->status->getValidity($settings)) {
81 return $uri_builder->
build(
84 [StaticUrlHandler::CHANGE_EMAIL_OPERATIONS, $this->token]
90 return hash(
'md5',
"{$this->created_timestamp}-{$this->user_id}-{$this->current_email}-{$this->status->value}");
__construct(private readonly int $user_id, private readonly string $current_email, private readonly string $new_email, private readonly int $created_timestamp, private readonly ChangeMailStatus $status=ChangeMailStatus::Login, private ?string $token=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
build(string $namespace, ?ReferenceId $reference_id=null, array $additional_parameters=[])
isTokenValidForCurrentStatus(\ilSetting $settings)
getUriForStatus(URIBuilder $uri_builder)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...