Documentation

PwnedPassword
in package

Pwned password class to check the password.

Table of Contents

afterLogin()  : void
Check the password after login.
check()  : array<string|int, mixed>
Check the password function.
getDefaultProvider()  : Base
Get default provider.
getProviders()  : array<string|int, Base>
Get all providers.
usersAfterLogin()  : void
UsersAfterLogin handler function.
usersAfterPasswordChange()  : void
UsersAfterPasswordChange handler function.

Methods

afterLogin()

Check the password after login.

public static afterLogin(array<string|int, mixed> $params) : void
Parameters
$params : array<string|int, mixed>
Return values
void

check()

Check the password function.

public static check(string $password) : array<string|int, mixed>
Parameters
$password : string
Return values
array<string|int, mixed>

['message' => (string) , 'status' => (bool)]

getDefaultProvider()

Get default provider.

public static getDefaultProvider() : Base
Return values
Base

getProviders()

Get all providers.

public static getProviders() : array<string|int, Base>
Return values
array<string|int, Base>

usersAfterLogin()

UsersAfterLogin handler function.

public usersAfterLogin(EventHandler $eventHandler) : void
Parameters
$eventHandler : EventHandler
Return values
void

usersAfterPasswordChange()

UsersAfterPasswordChange handler function.

public usersAfterPasswordChange(EventHandler $eventHandler) : void
Parameters
$eventHandler : EventHandler
Return values
void

        

Search results