Skip to content

Commit 039be92

Browse files
committed
Usage instructions, license changes, composer description
1 parent f74a0e4 commit 039be92

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# Laravel Validator Rules - Exposed Password
22

3-
This rule will validate that a password hasn't been exposed.
4-
3+
This rule will validate that a password hasn't been exposed in a data breach.
54

65
## Installation
76

87
```bash
98
composer require laravel-validation-rules/exposed-password
109
```
1110

12-
1311
## Usage
1412

13+
```php
14+
use DivineOmega\LaravelPasswordExposedValidationRule\PasswordExposed;
15+
16+
$request->validate([
17+
'password' => ['required', new PasswordExposed],
18+
]);
19+
```
1520

1621
### License
17-
This project is licensed under an Apache 2.0 license which you can find
22+
This project is licensed under a GNU Lesser General Public License v3.0 which you can find
1823
[in this LICENSE](https://github.com/laravel-validation-rules/exposed-password/blob/master/LICENSE).
1924

2025

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "laravel-validation-rules/exposed-password",
3+
"description": "Metapackage for https://github.com/DivineOmega/laravel-password-exposed-validation-rule",
34
"version": "1.1.0",
45
"type": "metapackage",
56
"require": {
67
"divineomega/laravel-password-exposed-validation-rule": "1.1.0"
7-
}
8+
},
9+
"license": "LGPL-3.0-only"
810
}

0 commit comments

Comments
 (0)