1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fail if no invitation found

This commit is contained in:
David Bomba 2023-02-02 12:08:06 +11:00
parent 5b3e087c66
commit 8cf9fdf759

View File

@ -110,7 +110,6 @@ class EntityViewController extends Controller
$key = $entity_type.'_id';
$invitation = $invitation_entity::where('key', $invitation_key)->firstOrFail();
// $invitation = $invitation_entity::whereRaw('BINARY `key`= ?', [$invitation_key])->firstOrFail();
$contact = $invitation->contact;
@ -141,7 +140,7 @@ class EntityViewController extends Controller
$query->where('is_deleted', 0);
})
->with('contact.client')
->first();
->firstOrFail();
$contact = $invitation->contact;
$contact->password = Hash::make($request->password);