Skip to content

Commit

Permalink
Merge pull request #15212 from filamentphp/email-change-verification
Browse files Browse the repository at this point in the history
Email change verification
  • Loading branch information
danharrin authored Dec 31, 2024
2 parents 52b3091 + e651c62 commit 8cedd80
Show file tree
Hide file tree
Showing 384 changed files with 1,415 additions and 421 deletions.
257 changes: 171 additions & 86 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/actions/src/Imports/ImportColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getSelect(): Select
->label($this->getLabel())
->placeholder(__('filament-actions::import.modal.form.columns.placeholder'))
->required($this->isMappingRequired())
->helperText($this->helperText);
->belowContent($this->helperText);
}

public function name(string $name): static
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/resources/lang/pl/validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

'distinct' => [
'must_be_selected' => 'Przynajmniej jedno pole :attribute musi być zaznaczone.',
'only_one_must_be_selected' => 'Tylko jedno pole :attribute musi być zaznaczone.'
'only_one_must_be_selected' => 'Tylko jedno pole :attribute musi być zaznaczone.',
],

];
6 changes: 3 additions & 3 deletions packages/panels/docs/07-users.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ In this example, we will customize the profile page. We need to create a new PHP

namespace App\Filament\Pages\Auth;

use Filament\Forms\Components\TextInput;
use Filament\Pages\Auth\EditProfile as BaseEditProfile;
use Filament\Schemas\Schema;
use Filament\Auth\Pages\EditProfile as BaseEditProfile;
use Filament\Forms\Components\TextInput
;use Filament\Schemas\Schema;

class EditProfile extends BaseEditProfile
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [

'notifications' => [

'blocked' => [
'title' => 'Email address change blocked',
'body' => 'You have successfully blocked an email address change attempt to :email. If you did not make the original request, please contact us immediately.',
],

'failed' => [
'title' => 'Failed to block email address change',
'body' => 'Unfortunately, you were unable to prevent the email address from being changed to :email, since it was already verified before you blocked it. If you did not make the original request, please contact us immediately.',
],

],

];
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

return [

'notifications' => [

'verified' => [
'title' => 'Email address changed',
'body' => 'Your email address has been successfully changed to :email.',
],

],

];
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

'management_form' => [
'management_schema' => [

'actions' => [
'label' => 'Email code authentication',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
'notifications' => [

'regenerated' => [

'title' => 'New two-factor app authentication recovery codes have been generated',

],

],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

'management_form' => [
'management_schema' => [

'actions' => [
'label' => 'Two factor authentication app',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [

'subject' => 'Your email address is being changed',

'lines' => [
'We received a request to change the email address associated with your account. Your password was used to confirm this change.',
'Once verified, the new email address on your account will be: :email.',
'You can block the change before it is verified by clicking the button below.',
'If you did not make this request, please contact us immediately.',
],

'action' => 'Block Email Change',

];
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@

'password' => [
'label' => 'New password',
'validation_attribute' => 'password',
],

'password_confirmation' => [
'label' => 'Confirm new password',
'validation_attribute' => 'password confirmation',
],

'current_password' => [
'label' => 'Current password',
'below_content' => 'For security, please confirm your password to continue.',
'validation_attribute' => 'current password',
],

'actions' => [
Expand All @@ -38,6 +42,11 @@

'notifications' => [

'email_change_verification_sent' => [
'title' => 'Email address change request sent',
'body' => 'A request to change your email address has been sent to :email. Please check your email to verify the change.',
],

'saved' => [
'title' => 'Saved',
],
Expand Down
Loading

0 comments on commit 8cedd80

Please sign in to comment.