mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-19 14:15:37 +00:00
test(auth): expect invitation link to use auth.link route
This commit is contained in:
1 parent
4f509c02be
commit
45d9426690
1 file changed
+2
-1
@@ -202,7 +202,8 @@ describe('privilege escalation prevention', function () {
|
|||||||
|
|
||||||
$invitation = TeamInvitation::whereEmail('fallback-invitee@example.com')->firstOrFail();
|
$invitation = TeamInvitation::whereEmail('fallback-invitee@example.com')->firstOrFail();
|
||||||
|
|
||||||
expect($invitation->link)->toStartWith('http://localhost/auth/link?token=');
|
$expectedPrefix = route('auth.link', ['token' => '']);
|
||||||
|
expect($invitation->link)->toStartWith($expectedPrefix);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('member cannot bypass policy by calling viaEmail', function () {
|
test('member cannot bypass policy by calling viaEmail', function () {
|
||||||
|
|||||||
Reference in new issue
Block a user