Class: PasswordStrengthService
Service to validate password strength
Implements
PasswordStrengthServiceInterface
Constructors
new PasswordStrengthService()
new PasswordStrengthService(
settings):PasswordStrengthService
Parameters
| Parameter | Type | Description |
|---|---|---|
settings | PasswordSettingsInterface | Password module settings |
Returns
Defined in
packages/nestjs-password/src/services/password-strength.service.ts:20 (opens in a new tab)
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
settings | readonly | PasswordSettingsInterface | Password module settings |
Methods
isStrong()
isStrong(
password):boolean
Method to check if password is strong
Parameters
| Parameter | Type | Description |
|---|---|---|
password | string | the plain text password |
Returns
boolean
password strength
Implementation of
PasswordStrengthServiceInterface.isStrong
Defined in
packages/nestjs-password/src/services/password-strength.service.ts:31 (opens in a new tab)