Skip to content

Commit

Permalink
Bugfix - Disable Registration (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafranks authored Jun 10, 2020
1 parent 46a5e0b commit 116e59c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Route::middleware('web')->namespace('\Sendportal\Base\Http\Controllers')->group(static function () {
Auth::routes([
'verify' => config('sendportal.auth.register', false),
'register' => config('sendportal.auth.register, false'),
'register' => config('sendportal.auth.register', false),
'reset' => config('sendportal.auth.password_reset'),
]);
});
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Auth/AuthConfigDisabledTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ function the_password_reset_routes_result_in_404()
$this->get('password/reset/123')->assertNotFound();
$this->post('password/reset')->assertNotFound();
}
}
}
2 changes: 1 addition & 1 deletion tests/Feature/Workspaces/SwitchWorkspaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function a_user_can_switch_between_workspaces()
$response = $this->get(route('sendportal.workspaces.switch', $secondWorkspace->id));

// then
$response->assertRedirect(route('sendportal.campaigns.index'));
$response->assertRedirect(route('sendportal.dashboard'));

$this->assertEquals($secondWorkspace->id, $user->currentWorkspace()->id);
}
Expand Down

0 comments on commit 116e59c

Please sign in to comment.