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:
parent
5b3e087c66
commit
8cf9fdf759
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user