File tree Expand file tree Collapse file tree 8 files changed +44
-11
lines changed
FilamentUserResource/Pages Expand file tree Collapse file tree 8 files changed +44
-11
lines changed Original file line number Diff line number Diff line change 36
36
'permissions_view ' => 'أذونات مباشرة وكذلك أذونات من خلال دورهم. ' ,
37
37
'account_expired ' => 'هذا الحساب منتهي الصلاحية. الرجاء الاتصال بالمسؤول. ' ,
38
38
'accounts_extended ' => 'تم تمديد الحسابات المختارة. ' ,
39
+ 'account_extended ' => 'تم تمديد الحساب المحدد. ' ,
39
40
'invalid_user ' => 'مستخدم غير صالح ، يرجى المحاولة مرة أخرى. ' ,
40
41
'code_expired ' => 'انتهت صلاحية رمز التحقق هذا. الرجاء استخدام الرمز الجديد الذي أرسلناه لك للتو. ' ,
41
42
'invalid_code ' => 'رمز التحقق غير صالح. ' ,
42
43
'enter_code ' => 'لتأكيد تسجيل الدخول الخاص بك ، يرجى إدخال رمز التحقق المرسل إلى عنوان بريدك الإلكتروني. ' ,
44
+ 'password_reset_link_sent ' => 'تم إرسال رابط إعادة تعيين كلمة المرور! ' ,
43
45
],
44
46
'pages ' => [
45
47
'reset_password ' => 'استعادة كلمة المرور ' ,
75
77
],
76
78
'actions ' => [
77
79
'extend ' => 'تمديد تاريخ انتهاء الصلاحية ' ,
80
+ 'reset_password ' => 'إعادة تعيين كلمة المرور ' ,
78
81
],
79
82
];
Original file line number Diff line number Diff line change 36
36
'permissions_view ' => 'Direkte Berechtigungen sowie Berechtigungen über die Rolle. ' ,
37
37
'account_expired ' => 'Dieser Account ist abgelaufen. Bitte kontaktieren Sie einen Administrator. ' ,
38
38
'accounts_extended ' => 'Die ausgewählten Accounts wurden erfolgreich verlängert. ' ,
39
+ 'account_extended ' => 'Das ausgewählte Konto wurde erweitert. ' ,
39
40
'invalid_user ' => 'Ungültiger Benutzer, bitte versuchen Sie es erneut. ' ,
40
41
'code_expired ' => 'Dieser Verifizierungscode ist abgelaufen. Bitte verwenden Sie den neuen Code, den wir Ihnen gerade geschickt haben. ' ,
41
42
'invalid_code ' => 'Ungültiger Verifizierungscode. ' ,
42
43
'enter_code ' => 'Bitte geben Sie zur Bestätigung Ihres Logins den Verifizierungscode ein, der an Ihre E-Mail Adresse geschickt wurde. ' ,
44
+ 'password_reset_link_sent ' => 'Link zum Zurücksetzen des Passworts gesendet! ' ,
43
45
],
44
46
'pages ' => [
45
47
'reset_password ' => 'Passwort zurücksetzen ' ,
75
77
],
76
78
'actions ' => [
77
79
'extend ' => 'Account verlängern ' ,
80
+ 'reset_password ' => 'Passwort zurücksetzen ' ,
78
81
],
79
82
];
Original file line number Diff line number Diff line change 36
36
'permissions_view ' => 'Direct permissions as well as permissions through their role. ' ,
37
37
'account_expired ' => 'This account is expired. Please contact an administrator. ' ,
38
38
'accounts_extended ' => 'The selected accounts have been extended. ' ,
39
+ 'account_extended ' => 'The selected account has been extended. ' ,
39
40
'invalid_user ' => 'Invalid user, please try again. ' ,
40
41
'code_expired ' => 'This verification code has expired. Please use the new code that we have just sent you. ' ,
41
42
'invalid_code ' => 'Invalid verification code. ' ,
42
43
'enter_code ' => 'To confirm your login, please enter the verification code sent to your email address. ' ,
44
+ 'password_reset_link_sent ' => 'Password reset link sent! ' ,
43
45
],
44
46
'pages ' => [
45
47
'reset_password ' => 'Reset password ' ,
75
77
],
76
78
'actions ' => [
77
79
'extend ' => 'Extend expiry date ' ,
80
+ 'reset_password ' => 'Reset password ' ,
78
81
],
79
82
];
Original file line number Diff line number Diff line change 36
36
'permissions_view ' => 'Izin langsung serta izin melalui peran mereka. ' ,
37
37
'account_expired ' => 'Akun ini telah kedaluwarsa. Harap hubungi seorang administrator. ' ,
38
38
'accounts_extended ' => 'Akun yang dipilih telah diperpanjang. ' ,
39
+ 'account_extended ' => 'Akun yang dipilih telah diperpanjang. ' ,
39
40
'invalid_user ' => 'Pengguna tidak valid, harap coba lagi. ' ,
40
41
'code_expired ' => 'Kode verifikasi ini telah kedaluwarsa. Harap gunakan kode baru yang baru saja kami kirimkan kepada Anda. ' ,
41
42
'invalid_code ' => 'Kode verifikasi tidak valid. ' ,
42
43
'enter_code ' => 'Untuk mengonfirmasi login Anda, harap masukkan kode verifikasi yang dikirimkan ke alamat email Anda. ' ,
44
+ 'password_reset_link_sent ' => 'Tautan setel ulang kata sandi terkirim! ' ,
43
45
],
44
46
'pages ' => [
45
47
'reset_password ' => 'Atur Ulang Kata Sandi ' ,
75
77
],
76
78
'actions ' => [
77
79
'extend ' => 'Perpanjang Tanggal Kadaluarsa ' ,
80
+ 'reset_password ' => 'Setel ulang kata sandi ' ,
78
81
],
79
82
];
Original file line number Diff line number Diff line change 36
36
'permissions_view ' => '直接のパーミッションだけでなく、ロールによるパーミッションも表示されます。 ' ,
37
37
'account_expired ' => 'このアカウントは有効期限が切れています。管理者に連絡してください。 ' ,
38
38
'accounts_extended ' => '選択されたアカウントは延長されています。 ' ,
39
+ 'account_extended ' => '選択したアカウントは延長されました。 ' ,
39
40
'invalid_user ' => '無効なユーザーです、もう一度お試しください。 ' ,
40
41
'code_expired ' => 'この認証コードは有効期限が切れています。先ほどお送りした新しいコードをお使いください。 ' ,
41
42
'invalid_code ' => '認証コードが無効です。 ' ,
42
43
'enter_code ' => 'ログインを確認するには、あなたのメールアドレスに送信された認証コードを入力してください。 ' ,
44
+ 'password_reset_link_sent ' => 'パスワードリセットリンクを送信しました! ' ,
43
45
],
44
46
'pages ' => [
45
47
'reset_password ' => 'パスワードのリセット ' ,
75
77
],
76
78
'actions ' => [
77
79
'extend ' => '有効期限を延長する ' ,
80
+ 'reset_password ' => 'パスワードをリセットする ' ,
78
81
],
79
82
];
Original file line number Diff line number Diff line change @@ -112,13 +112,26 @@ public static function table(Table $table): Table
112
112
->actions ([
113
113
EditAction::make (),
114
114
ViewAction::make (),
115
- ActionGroup::make ([
116
- Action::make ('reset_password ' )
117
- ->icon ('heroicon-o-key ' )
118
- ->action (function ($ record ) {
119
- return (new PasswordResetService ())->sendResetLink ($ record );
120
- })
121
- ])
115
+ ActionGroup::make (array_merge (
116
+ [
117
+ Action::make ('reset_password ' )
118
+ ->icon ('heroicon-o-key ' )
119
+ ->label (__ ('filament-access-control::default.actions.reset_password ' ))
120
+ ->requiresConfirmation ()
121
+ ->action (function ($ record ) {
122
+ return (new PasswordResetService ())->sendResetLink ($ record );
123
+ }),
124
+ ],
125
+ Feature::enabled (Feature::ACCOUNT_EXPIRY )
126
+ ? [
127
+ Action::make ('extend ' )
128
+ ->label (__ ('filament-access-control::default.actions.extend ' ))
129
+ ->action ('extendUsers ' )
130
+ ->requiresConfirmation ()
131
+ ->icon ('heroicon-o-clock ' ),
132
+ ]
133
+ : []
134
+ ))
122
135
])
123
136
->bulkActions ([
124
137
BulkActionGroup::make ([
Original file line number Diff line number Diff line change @@ -19,9 +19,14 @@ public function extendUsers(Collection $users): void
19
19
{
20
20
$ users ->each ->extend ();
21
21
22
- Notification::make ()->title (
23
- __ ('filament-access-control::default.messages.accounts_extended ' ),
24
- )->success ()->send ();
22
+ $ message = $ users ->count () === 1
23
+ ? __ ('filament-access-control::default.messages.account_extended ' )
24
+ : __ ('filament-access-control::default.messages.accounts_extended ' );
25
+
26
+ Notification::make ()
27
+ ->title ($ message )
28
+ ->success ()
29
+ ->send ();
25
30
}
26
31
27
32
protected function getHeaderActions (): array
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function sendResetLink(FilamentUser $user)
24
24
$ user ->notify ($ notification );
25
25
26
26
Notification::make ()
27
- ->title (__ ('Password reset link sent! ' ))
27
+ ->title (__ ('filament-access-control::default.messages.password_reset_link_sent ' ))
28
28
->success ()
29
29
->send ();
30
30
} catch (Exception $ e ) {
You can’t perform that action at this time.
0 commit comments