mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
Ask for email when generating LetsEncrypt SSLs (#452)
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
* @property string $ca_path
|
||||
* @property ?array $domains
|
||||
* @property int $log_id
|
||||
* @property string $email
|
||||
* @property ?ServerLog $log
|
||||
*/
|
||||
class Ssl extends AbstractModel
|
||||
@ -36,6 +37,7 @@ class Ssl extends AbstractModel
|
||||
'status',
|
||||
'domains',
|
||||
'log_id',
|
||||
'email',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
@ -143,4 +145,13 @@ public function log(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(ServerLog::class);
|
||||
}
|
||||
|
||||
public function getEmailAttribute(?string $value): string
|
||||
{
|
||||
if ($value) {
|
||||
return $value;
|
||||
}
|
||||
|
||||
return $this->site->server->creator->email;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user