@@ -2,21 +2,21 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 8 | - 'unAuthorized' => 'Please login before any action', |
|
| 9 | - 'invalidRefreshToken' => 'Invalid refresh token', |
|
| 10 | - 'noPermissions' => 'No permissions', |
|
| 11 | - 'loginFailed' => 'Wrong mail or password', |
|
| 12 | - 'noSocialEmail' => 'Couldn\'t retrieve email', |
|
| 13 | - 'userAlreadyRegistered' => 'User already registered. Please login using email and password', |
|
| 14 | - 'userIsBlocked' => 'You have been blocked', |
|
| 15 | - 'invalidResetToken' => 'Reset password token is invalid', |
|
| 16 | - 'invalidResetPassword' => 'Reset password is invalid', |
|
| 17 | - 'invalidOldPassword' => 'Old password is invalid', |
|
| 18 | - 'invalidConfirmationCode' => 'Confirmation link expired or already used', |
|
| 19 | - 'emailNotConfirmed' => 'Your email isn\'t confirmed', |
|
| 20 | - 'emailAlreadyConfirmed' => 'Your email is already confirmed' |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | + 'unAuthorized' => 'Please login before any action', |
|
| 9 | + 'invalidRefreshToken' => 'Invalid refresh token', |
|
| 10 | + 'noPermissions' => 'No permissions', |
|
| 11 | + 'loginFailed' => 'Wrong mail or password', |
|
| 12 | + 'noSocialEmail' => 'Couldn\'t retrieve email', |
|
| 13 | + 'userAlreadyRegistered' => 'User already registered. Please login using email and password', |
|
| 14 | + 'userIsBlocked' => 'You have been blocked', |
|
| 15 | + 'invalidResetToken' => 'Reset password token is invalid', |
|
| 16 | + 'invalidResetPassword' => 'Reset password is invalid', |
|
| 17 | + 'invalidOldPassword' => 'Old password is invalid', |
|
| 18 | + 'invalidConfirmationCode' => 'Confirmation link expired or already used', |
|
| 19 | + 'emailNotConfirmed' => 'Your email isn\'t confirmed', |
|
| 20 | + 'emailAlreadyConfirmed' => 'Your email is already confirmed' |
|
| 21 | 21 | |
| 22 | 22 | ]; |
@@ -2,21 +2,21 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 8 | - 'unAuthorized' => 'من فضلك قم بتسجيل الدخول', |
|
| 9 | - 'invalidRefreshToken' => 'رمز التحديث غير صالح', |
|
| 10 | - 'noPermissions' => 'لا توجد صلاحية', |
|
| 11 | - 'loginFailed' => 'خطأ في البريد لاكتروني او كلمة المرور', |
|
| 12 | - 'noSocialEmail' => 'لا يمكن الحصول علي تابريد الاكتروني', |
|
| 13 | - 'userAlreadyRegistered' => 'المستخد مسجل بالفعل.سجل الدخول بالبريد الاكتروني و كلمة السر', |
|
| 14 | - 'userIsBlocked' => 'لقد تم حظرك', |
|
| 15 | - 'invalidResetToken' => 'رمز تعديل كلمة المرور خطا', |
|
| 16 | - 'invalidResetPassword' => 'خطا في نعديل كلمة المرور', |
|
| 17 | - 'invalidOldPassword' => 'كلمة السر القديمه خطا', |
|
| 18 | - 'invalidConfirmationCode' => 'لينك التاكيد غير صالح اة مستخدم من قبل', |
|
| 19 | - 'emailNotConfirmed' => 'بريدك الاكتروني غير مفعل', |
|
| 20 | - 'emailAlreadyConfirmed' => 'البريد الاكتروني مفع بالقعل' |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | + 'unAuthorized' => 'من فضلك قم بتسجيل الدخول', |
|
| 9 | + 'invalidRefreshToken' => 'رمز التحديث غير صالح', |
|
| 10 | + 'noPermissions' => 'لا توجد صلاحية', |
|
| 11 | + 'loginFailed' => 'خطأ في البريد لاكتروني او كلمة المرور', |
|
| 12 | + 'noSocialEmail' => 'لا يمكن الحصول علي تابريد الاكتروني', |
|
| 13 | + 'userAlreadyRegistered' => 'المستخد مسجل بالفعل.سجل الدخول بالبريد الاكتروني و كلمة السر', |
|
| 14 | + 'userIsBlocked' => 'لقد تم حظرك', |
|
| 15 | + 'invalidResetToken' => 'رمز تعديل كلمة المرور خطا', |
|
| 16 | + 'invalidResetPassword' => 'خطا في نعديل كلمة المرور', |
|
| 17 | + 'invalidOldPassword' => 'كلمة السر القديمه خطا', |
|
| 18 | + 'invalidConfirmationCode' => 'لينك التاكيد غير صالح اة مستخدم من قبل', |
|
| 19 | + 'emailNotConfirmed' => 'بريدك الاكتروني غير مفعل', |
|
| 20 | + 'emailAlreadyConfirmed' => 'البريد الاكتروني مفع بالقعل' |
|
| 21 | 21 | |
| 22 | 22 | ]; |
@@ -4,68 +4,68 @@ |
||
| 4 | 4 | |
| 5 | 5 | class UsersErrors |
| 6 | 6 | { |
| 7 | - public function unAuthorized() |
|
| 8 | - { |
|
| 9 | - abort(401, trans('users::errors.unAuthorized')); |
|
| 10 | - } |
|
| 7 | + public function unAuthorized() |
|
| 8 | + { |
|
| 9 | + abort(401, trans('users::errors.unAuthorized')); |
|
| 10 | + } |
|
| 11 | 11 | |
| 12 | - public function noPermissions() |
|
| 13 | - { |
|
| 14 | - abort(403, trans('users::errors.noPermissions')); |
|
| 15 | - } |
|
| 12 | + public function noPermissions() |
|
| 13 | + { |
|
| 14 | + abort(403, trans('users::errors.noPermissions')); |
|
| 15 | + } |
|
| 16 | 16 | |
| 17 | - public function userIsBlocked() |
|
| 18 | - { |
|
| 19 | - abort(403, trans('users::errors.userIsBlocked')); |
|
| 20 | - } |
|
| 17 | + public function userIsBlocked() |
|
| 18 | + { |
|
| 19 | + abort(403, trans('users::errors.userIsBlocked')); |
|
| 20 | + } |
|
| 21 | 21 | |
| 22 | - public function emailNotConfirmed() |
|
| 23 | - { |
|
| 24 | - abort(403, trans('users::errors.emailNotConfirmed')); |
|
| 25 | - } |
|
| 22 | + public function emailNotConfirmed() |
|
| 23 | + { |
|
| 24 | + abort(403, trans('users::errors.emailNotConfirmed')); |
|
| 25 | + } |
|
| 26 | 26 | |
| 27 | - public function loginFailed() |
|
| 28 | - { |
|
| 29 | - abort(400, trans('users::errors.loginFailed')); |
|
| 30 | - } |
|
| 27 | + public function loginFailed() |
|
| 28 | + { |
|
| 29 | + abort(400, trans('users::errors.loginFailed')); |
|
| 30 | + } |
|
| 31 | 31 | |
| 32 | - public function emailAlreadyConfirmed() |
|
| 33 | - { |
|
| 34 | - abort(400, trans('users::errors.emailAlreadyConfirmed')); |
|
| 35 | - } |
|
| 32 | + public function emailAlreadyConfirmed() |
|
| 33 | + { |
|
| 34 | + abort(400, trans('users::errors.emailAlreadyConfirmed')); |
|
| 35 | + } |
|
| 36 | 36 | |
| 37 | - public function noSocialEmail() |
|
| 38 | - { |
|
| 39 | - abort(400, trans('users::errors.noSocialEmail')); |
|
| 40 | - } |
|
| 37 | + public function noSocialEmail() |
|
| 38 | + { |
|
| 39 | + abort(400, trans('users::errors.noSocialEmail')); |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | - public function userAlreadyRegistered() |
|
| 43 | - { |
|
| 44 | - abort(400, trans('users::errors.userAlreadyRegistered')); |
|
| 45 | - } |
|
| 42 | + public function userAlreadyRegistered() |
|
| 43 | + { |
|
| 44 | + abort(400, trans('users::errors.userAlreadyRegistered')); |
|
| 45 | + } |
|
| 46 | 46 | |
| 47 | - public function invalidRefreshToken() |
|
| 48 | - { |
|
| 49 | - abort(422, trans('users::errors.invalidRefreshToken')); |
|
| 50 | - } |
|
| 47 | + public function invalidRefreshToken() |
|
| 48 | + { |
|
| 49 | + abort(422, trans('users::errors.invalidRefreshToken')); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | - public function invalidResetToken() |
|
| 53 | - { |
|
| 54 | - abort(422, trans('users::errors.invalidResetToken')); |
|
| 55 | - } |
|
| 52 | + public function invalidResetToken() |
|
| 53 | + { |
|
| 54 | + abort(422, trans('users::errors.invalidResetToken')); |
|
| 55 | + } |
|
| 56 | 56 | |
| 57 | - public function invalidResetPassword() |
|
| 58 | - { |
|
| 59 | - abort(422, trans('users::errors.invalidResetPassword')); |
|
| 60 | - } |
|
| 57 | + public function invalidResetPassword() |
|
| 58 | + { |
|
| 59 | + abort(422, trans('users::errors.invalidResetPassword')); |
|
| 60 | + } |
|
| 61 | 61 | |
| 62 | - public function invalidOldPassword() |
|
| 63 | - { |
|
| 64 | - abort(422, trans('users::errors.invalidOldPassword')); |
|
| 65 | - } |
|
| 62 | + public function invalidOldPassword() |
|
| 63 | + { |
|
| 64 | + abort(422, trans('users::errors.invalidOldPassword')); |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - public function invalidConfirmationCode() |
|
| 68 | - { |
|
| 69 | - abort(422, trans('users::errors.invalidConfirmationCode')); |
|
| 70 | - } |
|
| 67 | + public function invalidConfirmationCode() |
|
| 68 | + { |
|
| 69 | + abort(422, trans('users::errors.invalidConfirmationCode')); |
|
| 70 | + } |
|
| 71 | 71 | } |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | return [ |
| 4 | 4 | |
| 5 | - /** |
|
| 6 | - * Here goes your error messages. |
|
| 7 | - */ |
|
| 5 | + /** |
|
| 6 | + * Here goes your error messages. |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | ]; |