complete story 2.4 with qa test and added a feature disallowing admin from deactivating his own account

This commit is contained in:
Naser Mansour
2025-12-26 16:10:52 +02:00
parent b207be196e
commit f508f2b7bf
15 changed files with 1656 additions and 69 deletions
+53
View File
@@ -120,4 +120,57 @@ return [
'continue' => 'متابعة',
'back' => 'رجوع',
'confirm_convert' => 'تأكيد التحويل',
// Account Lifecycle Management
'account_actions' => 'إجراءات الحساب',
'deactivate' => 'تعطيل',
'reactivate' => 'إعادة تفعيل',
'reset_password' => 'إعادة تعيين كلمة المرور',
'delete_permanently' => 'حذف نهائي',
// Deactivate Account
'cannot_deactivate_self' => 'لا يمكنك تعطيل حسابك الخاص.',
'confirm_deactivate' => 'تأكيد التعطيل',
'deactivate_warning' => 'سيؤدي هذا إلى منع المستخدم من تسجيل الدخول إلى حسابه.',
'deactivate_effects' => 'آثار التعطيل',
'deactivate_effect_login' => 'لن يتمكن المستخدم من تسجيل الدخول',
'deactivate_effect_sessions' => 'سيتم إنهاء جميع الجلسات النشطة',
'deactivate_effect_data' => 'سيتم الاحتفاظ بجميع البيانات (الاستشارات، القضايا)',
'deactivate_effect_reversible' => 'يمكن إعادة تفعيل الحساب في أي وقت',
'confirm_deactivate_action' => 'تعطيل الحساب',
'user_deactivated' => 'تم تعطيل الحساب بنجاح.',
// Reactivate Account
'confirm_reactivate' => 'تأكيد إعادة التفعيل',
'reactivate_message' => 'سيؤدي هذا إلى استعادة قدرة المستخدم على تسجيل الدخول.',
'reactivate_effects' => 'آثار إعادة التفعيل',
'reactivate_effect_login' => 'سيتمكن المستخدم من تسجيل الدخول مجدداً',
'reactivate_effect_data' => 'ستبقى جميع البيانات السابقة كما هي',
'reactivate_effect_email' => 'سيتلقى المستخدم إشعاراً بالبريد الإلكتروني',
'confirm_reactivate_action' => 'إعادة تفعيل الحساب',
'user_reactivated' => 'تم إعادة تفعيل الحساب بنجاح.',
// Delete Account
'cannot_delete_self' => 'لا يمكنك حذف حسابك الخاص.',
'confirm_delete' => 'تأكيد الحذف النهائي',
'delete_warning_title' => 'لا يمكن التراجع عن هذا الإجراء!',
'delete_warning' => 'سيؤدي هذا إلى إزالة جميع بيانات المستخدم نهائياً من النظام.',
'will_be_deleted' => 'سيتم حذف ما يلي نهائياً',
'delete_item_consultations' => 'جميع الاستشارات وسجلها',
'delete_item_timelines' => 'جميع القضايا وتحديثاتها',
'delete_item_notifications' => 'جميع الإشعارات',
'delete_item_account' => 'حساب المستخدم',
'type_email_to_confirm' => 'اكتب ":email" لتأكيد الحذف',
'email_confirmation_mismatch' => 'البريد الإلكتروني غير مطابق. يرجى كتابة البريد الإلكتروني الصحيح للتأكيد.',
'user_deleted' => 'تم حذف الحساب بنجاح.',
// Password Reset
'reset_password_title' => 'إعادة تعيين كلمة مرور المستخدم',
'reset_password_message' => 'سيتم إنشاء كلمة مرور عشوائية جديدة وإرسالها إلى المستخدم.',
'reset_password_effects' => 'ما سيحدث',
'reset_password_effect_generate' => 'سيتم إنشاء كلمة مرور عشوائية جديدة من 12 حرفاً',
'reset_password_effect_email' => 'سيتم إرسال كلمة المرور الجديدة بالبريد الإلكتروني إلى المستخدم',
'reset_password_effect_old' => 'لن تعمل كلمة المرور القديمة بعد الآن',
'confirm_reset_password' => 'إعادة تعيين كلمة المرور',
'password_reset_sent' => 'تم إنشاء كلمة المرور الجديدة وإرسالها إلى المستخدم.',
];
+15
View File
@@ -8,6 +8,21 @@ return [
'account_type_changed_body' => 'نود إعلامك بأن نوع حسابك قد تم تغييره إلى :type.',
'account_type_changed_note' => 'جميع استشاراتك وقضاياك السابقة لا تزال محفوظة ويمكنك الوصول إليها.',
// Account Reactivated
'account_reactivated_subject' => 'تم إعادة تفعيل حسابك',
'account_reactivated_title' => 'تم إعادة تفعيل حسابك',
'account_reactivated_greeting' => 'مرحباً :name،',
'account_reactivated_body' => 'يسعدنا إبلاغك بأنه تم إعادة تفعيل حسابك. يمكنك الآن تسجيل الدخول والوصول إلى جميع بياناتك.',
'account_reactivated_note' => 'إذا لم تكن تتوقع هذا التغيير، يرجى الاتصال بالدعم فوراً.',
// Password Reset by Admin
'password_reset_by_admin_subject' => 'تم إعادة تعيين كلمة المرور الخاصة بك',
'password_reset_by_admin_title' => 'تم إعادة تعيين كلمة المرور الخاصة بك',
'password_reset_by_admin_greeting' => 'مرحباً :name،',
'password_reset_by_admin_body' => 'قام المسؤول بإعادة تعيين كلمة المرور الخاصة بك. يرجى استخدام كلمة المرور الجديدة أدناه لتسجيل الدخول.',
'your_new_password' => 'كلمة المرور الجديدة',
'password_reset_by_admin_note' => 'لأسباب أمنية، ننصحك بتغيير كلمة المرور هذه بعد تسجيل الدخول.',
// Common
'login_now' => 'تسجيل الدخول الآن',
'regards' => 'مع أطيب التحيات',
+53
View File
@@ -120,4 +120,57 @@ return [
'continue' => 'Continue',
'back' => 'Back',
'confirm_convert' => 'Confirm Conversion',
// Account Lifecycle Management
'account_actions' => 'Account Actions',
'deactivate' => 'Deactivate',
'reactivate' => 'Reactivate',
'reset_password' => 'Reset Password',
'delete_permanently' => 'Delete Permanently',
// Deactivate Account
'cannot_deactivate_self' => 'You cannot deactivate your own account.',
'confirm_deactivate' => 'Confirm Deactivation',
'deactivate_warning' => 'This will prevent the user from logging in to their account.',
'deactivate_effects' => 'Effects of deactivation',
'deactivate_effect_login' => 'User will not be able to log in',
'deactivate_effect_sessions' => 'All active sessions will be terminated',
'deactivate_effect_data' => 'All data (consultations, timelines) will be retained',
'deactivate_effect_reversible' => 'Account can be reactivated at any time',
'confirm_deactivate_action' => 'Deactivate Account',
'user_deactivated' => 'Account deactivated successfully.',
// Reactivate Account
'confirm_reactivate' => 'Confirm Reactivation',
'reactivate_message' => 'This will restore the user\'s ability to log in.',
'reactivate_effects' => 'Effects of reactivation',
'reactivate_effect_login' => 'User will be able to log in again',
'reactivate_effect_data' => 'All previous data remains intact',
'reactivate_effect_email' => 'User will receive an email notification',
'confirm_reactivate_action' => 'Reactivate Account',
'user_reactivated' => 'Account reactivated successfully.',
// Delete Account
'cannot_delete_self' => 'You cannot delete your own account.',
'confirm_delete' => 'Confirm Permanent Deletion',
'delete_warning_title' => 'This action cannot be undone!',
'delete_warning' => 'This will permanently remove all user data from the system.',
'will_be_deleted' => 'The following will be permanently deleted',
'delete_item_consultations' => 'All consultations and their history',
'delete_item_timelines' => 'All timelines and their updates',
'delete_item_notifications' => 'All notifications',
'delete_item_account' => 'The user account',
'type_email_to_confirm' => 'Type ":email" to confirm deletion',
'email_confirmation_mismatch' => 'The email does not match. Please type the correct email to confirm.',
'user_deleted' => 'Account deleted successfully.',
// Password Reset
'reset_password_title' => 'Reset User Password',
'reset_password_message' => 'A new random password will be generated and sent to the user.',
'reset_password_effects' => 'What will happen',
'reset_password_effect_generate' => 'A new 12-character random password will be generated',
'reset_password_effect_email' => 'The new password will be emailed to the user',
'reset_password_effect_old' => 'The old password will no longer work',
'confirm_reset_password' => 'Reset Password',
'password_reset_sent' => 'New password generated and sent to the user.',
];
+15
View File
@@ -8,6 +8,21 @@ return [
'account_type_changed_body' => 'We would like to inform you that your account type has been changed to :type.',
'account_type_changed_note' => 'All your previous consultations and timelines are still preserved and accessible.',
// Account Reactivated
'account_reactivated_subject' => 'Your Account Has Been Reactivated',
'account_reactivated_title' => 'Your Account Has Been Reactivated',
'account_reactivated_greeting' => 'Hello :name,',
'account_reactivated_body' => 'We are pleased to inform you that your account has been reactivated. You can now log in and access all your data.',
'account_reactivated_note' => 'If you did not expect this change, please contact support immediately.',
// Password Reset by Admin
'password_reset_by_admin_subject' => 'Your Password Has Been Reset',
'password_reset_by_admin_title' => 'Your Password Has Been Reset',
'password_reset_by_admin_greeting' => 'Hello :name,',
'password_reset_by_admin_body' => 'An administrator has reset your password. Please use the new password below to log in.',
'your_new_password' => 'Your New Password',
'password_reset_by_admin_note' => 'For security, we recommend changing this password after logging in.',
// Common
'login_now' => 'Login Now',
'regards' => 'Regards',