mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-21 12:23:45 +00:00
test(auth): expect invitation link to use auth.link route
This commit is contained in:
@@ -202,7 +202,8 @@ describe('privilege escalation prevention', function () {
|
||||
|
||||
$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 () {
|
||||
|
||||
Reference in New Issue
Block a user