Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/Actions/Project/AddProjectMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function validate($project, string $email, ?string $role)
'email' => $email,
'role' => $role,
], $this->rules(), [
'email.exists' => __('We were unable to find a registered user with this email address.'),
'email.exists' => __('Unable to add member with this email address.'),
])->after(
$this->ensureUserIsNotAlreadyOnProject($project, $email)
)->validateWithBag('addModelMember');
Expand Down Expand Up @@ -80,7 +80,7 @@ protected function ensureUserIsNotAlreadyOnProject($project, string $email)
$validator->errors()->addIf(
$project->hasUserWithEmail($email),
'email',
__('This user already belongs to the project.')
__('Unable to add member with this email address.')
);
};
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/API/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ public function login(Request $request): JsonResponse

if (! $user->hasVerifiedEmail()) {
return response()->json([
'message' => 'Account is not yet verified. Please verify your email address by clicking on the link we just emailed to you.',
], 403);
'message' => 'Invalid login details',
], 401);
}

$token = $user->createToken('auth_token')->plainTextToken;
Expand Down
Loading
Loading