Add email notifications for expiring api tokens

This commit is contained in:
Constantin Graf
2025-07-17 15:33:06 +02:00
committed by Constantin Graf
parent 3d58f570bd
commit f9c0d64f82
18 changed files with 618 additions and 16 deletions

View File

@@ -0,0 +1,12 @@
@component('mail::message')
{{ __('The API token ":token" expired.', ['token' => $tokenName]) }}
{{ __('You can create a new API token in your profile:') }}
@component('mail::button', ['url' => $profileUrl])
{{ __('Go to your profile') }}
@endcomponent
@endcomponent

View File

@@ -0,0 +1,13 @@
@component('mail::message')
{{ __('The API token ":token" will expire in 7 days!', ['token' => $tokenName]) }}
{{ __('Please make sure to create a new API token and use the new one instead before it expires to avoid any disruptions in service.') }}
{{ __('You can create a new API token in your profile:') }}
@component('mail::button', ['url' => $profileUrl])
{{ __('Go to your profile') }}
@endcomponent
@endcomponent