You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
33
31
34
32
```php
35
33
public array $redirects = [
@@ -63,13 +61,10 @@ Shield has the following controllers that can be extended to handle
63
61
various parts of the authentication process:
64
62
65
63
-**ActionController** handles the after-login and after-registration actions, like Two Factor Authentication and Email Verification.
66
-
67
64
-**LoginController** handles the login process.
68
-
69
65
-**RegisterController** handles the registration process. Overriding this class allows you to customize the User Provider, the User Entity, and the validation rules.
70
-
71
66
-**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.
73
68
74
69
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
75
70
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