Skip to content

Commit 16a5f7d

Browse files
committed
updated redirect urls customization docs
1 parent 27464e1 commit 16a5f7d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/customization.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ $routes->get('login', '\App\Controllers\Auth\LoginController::loginView');
2424
$routes->get('register', '\App\Controllers\Auth\RegisterController::registerView');
2525
```
2626

27-
28-
2927
## Custom Redirect URLs
3028

3129
By default, a successful login or register attempt will all redirect to `/`, while a logout action
32-
will redirect to `/login`. You can change the default URLs used within the `Auth` config file:
30+
will redirect to a [named route](https://codeigniter4.github.io/CodeIgniter4/incoming/routing.html#using-named-routes "See routing docs") `login` or a *URI path* `/login`. You can change the default URLs used within the `Auth` config file:
3331

3432
```php
3533
public array $redirects = [
@@ -63,13 +61,10 @@ Shield has the following controllers that can be extended to handle
6361
various parts of the authentication process:
6462

6563
- **ActionController** handles the after-login and after-registration actions, like Two Factor Authentication and Email Verification.
66-
6764
- **LoginController** handles the login process.
68-
6965
- **RegisterController** handles the registration process. Overriding this class allows you to customize the User Provider, the User Entity, and the validation rules.
70-
7166
- **MagicLinkController** handles the "lost password" process that allows a user to login with a link sent to their email. This allows you to
72-
override the message that is displayed to a user to describe what is happening, if you'd like to provide more information than simply swapping out the view used.
67+
override the message that is displayed to a user to describe what is happening, if you'd like to provide more information than simply swapping out the view used.
7368

7469
It is not recommended to copy the entire controller into **app/Controllers** and change its namespace. Instead, you should create a new controller that extends
7570
the existing controller and then only override the methods needed. This allows the other methods to stay up to date with any security

0 commit comments

Comments
 (0)