Skip to content

Commit

Permalink
feat: block account route (#103)
Browse files Browse the repository at this point in the history
* feat: block account route

* feat: messages

* fix: add nullable (#163)

* feat: set null for searchitem (#166)

* fix: fallback to null for SearchItem

* style: formatting

* fix: only add column when it doesn't exist (#167)

* fix: only add column when it doesn't exist

* style: formatting

* feat: dd removed

* feat: add admin e-mail to config

* feat: publish css file

* feat: update block template

* feat: templates

* fix: english language

* feat: template for succes

* style: formatting

---------

Co-authored-by: René <rene@64k.nl>
  • Loading branch information
keeama13 and 64knl committed Feb 9, 2024
1 parent 200b40b commit 45a9151
Show file tree
Hide file tree
Showing 12 changed files with 852 additions and 11 deletions.
11 changes: 11 additions & 0 deletions config/siteboss.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,15 @@

'export_retain_ids' => env('SB_EXPORT_RETAIN_IDS', false),

/*
|--------------------------------------------------------------------------
| Admin email
|--------------------------------------------------------------------------
|
| Email address to send admin notifications to.
|
*/

'admin_email' => env('SB_ADMIN_EMAIL', null),

];
6 changes: 6 additions & 0 deletions lang/en/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
'verify_email_button' => 'Verify email',
'verify_email_resend' => 'Resend verification email',
'verify_email_link_sent' => 'A fresh verification link has been sent to your email address.',
'verify_email_success' => 'Account successfully verified.',
'verify_wrong_email' => 'Click here to block this attempt if you were not the one who tried to login.',
'block_account_title' => 'Account blocked',
'block_account_message' => 'The account has been blocked.',
'verify_block_account_title' => 'Block account?',
'verify_block_account_message' => 'Are you sure you want to block this account? You will not be able to login to SiteBoss. An administrator can unblock your account.',
'verify_block_account_button' => 'Block account',

];
9 changes: 8 additions & 1 deletion lang/nl/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
'verify_email_link' => 'Klik op onderstaande link om je e-mailadres te bevestigen.',
'verify_email_resend' => 'Verificatiemail opnieuw verzenden',
'verify_email_link_sent' => 'Er is een nieuwe verificatielink naar jouw e-mailadres verzonden.',
'verify_email_success' => 'Account succesvol geverifieerd.',

'verify_wrong_email' => 'Heb je zelf niet geprobeerd in te loggen? Klik dan hier om deze poging te blokkeren.',
'block_account_message' => 'Account succesvol geblokkeerd.',

'verify_block_account_title' => 'Account blokkeren?',
'verify_block_account_message' => 'Wil je voor de zekerheid jouw account blokkeren? Je kunt dan niet meer inloggen op SiteBoss. Een administrator kan jouw account weer deblokkeren.',
'verify_block_account_button' => 'Blokkeer account',
'block_account_title' => 'Account geblokkeerd',
'block_account_message' => 'Vraag een beheerder om je account te herstellen.',
];
Loading

0 comments on commit 45a9151

Please sign in to comment.