From d22a6ae1dc03cdbea11a8d74b824fd3d39b22de5 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 11 Oct 2023 09:53:59 +0900 Subject: [PATCH 1/2] docs: fix directory separators --- docs/customization/login_identifier.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/customization/login_identifier.md b/docs/customization/login_identifier.md index 2e143c899..fc4abd91c 100644 --- a/docs/customization/login_identifier.md +++ b/docs/customization/login_identifier.md @@ -50,7 +50,7 @@ You must write new **Validation Rules** and then set them using the ]; ``` -2. Copy file `vendor\codeigniter4\shield\src\Views\login.php` to `app\Views\Shield\login.php`. +2. Copy file `vendor/codeigniter4/shield/src/Views/login.php` to `app/Views/Shield/login.php`. 3. Customize the login form to change the name of the default `email` input to the new field name. ```php From cae1d34a8e85b104686ba27f43051549cce2dadd Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 11 Oct 2023 09:54:52 +0900 Subject: [PATCH 2/2] docs: fix text decoration for file paths --- docs/customization/login_identifier.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/customization/login_identifier.md b/docs/customization/login_identifier.md index fc4abd91c..6bcec7393 100644 --- a/docs/customization/login_identifier.md +++ b/docs/customization/login_identifier.md @@ -11,7 +11,7 @@ adds a new column to the `users` table. ## Change $validFields -Edit `app/Config/Auth.php` so that the new column you just created is within the +Edit **app/Config/Auth.php** so that the new column you just created is within the `$validFields` array. ```php @@ -41,7 +41,7 @@ You must write new **Validation Rules** and then set them using the ## Customize Login View -1. Change the `login` view file in the `app/Config/Auth.php` file. +1. Change the `login` view file in the **app/Config/Auth.php** file. ```php public array $views = [ @@ -50,7 +50,7 @@ You must write new **Validation Rules** and then set them using the ]; ``` -2. Copy file `vendor/codeigniter4/shield/src/Views/login.php` to `app/Views/Shield/login.php`. +2. Copy file **vendor/codeigniter4/shield/src/Views/login.php** to **app/Views/Shield/login.php**. 3. Customize the login form to change the name of the default `email` input to the new field name. ```php