Skip to content

Commit 30499c1

Browse files
committed
docs: replace Auth with app/Config/Auth.php
1 parent 8277464 commit 30499c1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/customization.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $routes->get('register', '\App\Controllers\Auth\RegisterController::registerView
3030
## Custom Redirect URLs
3131

3232
By default, a successful login or register attempt will all redirect to `/`, while a logout action
33-
will redirect to a [named route](https://codeigniter.com/user_guide/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+
will redirect to a [named route](https://codeigniter.com/user_guide/incoming/routing.html#using-named-routes "See routing docs") `login` or a *URI path* `/login`. You can change the default URLs used within the `app/Config/Auth.php` config file:
3434

3535
```php
3636
public array $redirects = [
@@ -42,7 +42,7 @@ public array $redirects = [
4242

4343
### Customize Login Redirect
4444

45-
You can further customize where a user is redirected to on login with the `loginRedirect()` method of the `Auth` config file. This is handy if you want to redirect based on user group or other criteria.
45+
You can further customize where a user is redirected to on login with the `loginRedirect()` method of the `app/Config/Auth.php` config file. This is handy if you want to redirect based on user group or other criteria.
4646

4747
```php
4848
public function loginRedirect(): string
@@ -57,7 +57,7 @@ public function loginRedirect(): string
5757

5858
Oftentimes, you will want to have different redirects for different user groups. A simple example
5959
might be that you want admins redirected to `/admin` while all other groups redirect to `/`.
60-
The `Auth` config file also includes methods that you can add additional logic to in order to
60+
The `app/Config/Auth.php` config file also includes methods that you can add additional logic to in order to
6161
achieve this:
6262

6363
```php
@@ -75,7 +75,7 @@ public function loginRedirect(): string
7575

7676
### Customize Register Redirect
7777

78-
You can customize where a user is redirected to after registration in the `registerRedirect` method of the `Auth` config file.
78+
You can customize where a user is redirected to after registration in the `registerRedirect` method of the `app/Config/Auth.php` config file.
7979

8080
```php
8181
public function registerRedirect(): string
@@ -88,7 +88,7 @@ public function registerRedirect(): string
8888

8989
### Customize Logout Redirect
9090

91-
The logout redirect can also be overridden by the `logoutRedirect` method of the `Auth` config file. This will not be used as often as login and register, but you might find the need. For example, if you programatically logged a user out you might want to take them to a page that specifies why they were logged out. Otherwise, you might take them to the home page or even the login page.
91+
The logout redirect can also be overridden by the `logoutRedirect` method of the `app/Config/Auth.php` config file. This will not be used as often as login and register, but you might find the need. For example, if you programatically logged a user out you might want to take them to a page that specifies why they were logged out. Otherwise, you might take them to the home page or even the login page.
9292

9393
```php
9494
public function logoutRedirect(): string

0 commit comments

Comments
 (0)