Skip to content

Commit 2c682c3

Browse files
committed
remove registrar reference
1 parent 94f14e3 commit 2c682c3

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

docs/7 - customization.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,3 @@ public $registration = [
110110
'password_confirm' => 'required|matches[password]',
111111
];
112112
```
113-
114-
Or use `Registrar`. If you are not aware of the Registrar, you can read more about the class [here](https://codeigniter4.github.io/CodeIgniter4/general/configuration.html#registrars).
115-
116-
For example:
117-
118-
119-
```php
120-
/**
121-
* Registers validation rules for registration.
122-
*/
123-
public static function Validation()
124-
{
125-
return [
126-
$registration = [
127-
'username' => 'required|alpha_numeric_space|min_length[3]|is_unique[users.username]',
128-
'email' => 'required|valid_email|is_unique[auth_identities.secret]',
129-
'password' => 'required|strong_password',
130-
'password_confirm' => 'required|matches[password]',
131-
];
132-
];
133-
}
134-
```

0 commit comments

Comments
 (0)