MemberExtension
extends DataExtension
in package
Class \Firesphere\HaveIBeenPwned\Extensions\MemberExtension
Table of Contents
Constants
- PWND_TAB = 'Root.HaveIBeenPwned'
- Name of the tab that is used for HaveIBeenPwned
Properties
- $BreachedSites : string
- $owner : Member|MemberExtension
- $PasswordIsPwnd : int
- $fallbackHelp : mixed
- $db : array<string|int, mixed>
Methods
- updateCMSFields() : mixed
- breachedSites() : mixed
- breachFound() : mixed
Constants
PWND_TAB
Name of the tab that is used for HaveIBeenPwned
public
mixed
PWND_TAB
= 'Root.HaveIBeenPwned'
Properties
$BreachedSites
public
string
$BreachedSites
$owner
public
Member|MemberExtension
$owner
$PasswordIsPwnd
public
int
$PasswordIsPwnd
$fallbackHelp
protected
mixed
$fallbackHelp
= 'If the error says that you "have been Pwnd", it means your password appears in the ' . '<a href="https://haveibeenpwned.com/Privacy">Have I Been Pwnd</a> database. ' . 'Therefore, we can not accept your password, because it is insecure or known to have been breached. ' . 'Before a password is safely stored in our database, we test if the password has been breached. ' . 'We do not share your password. ' . 'We run a safe test against the HaveIBeenPwned database to. ' . 'None of your data is shared or stored at HaveIBeenPwned. ' . 'For more information, you can read up on "Password safety", ' . 'and we strongly recommend installing a password manager if you haven\'t already. ' . 'Several options are LastPass, BitWarden and 1Password. ' . 'These services are also able to test your passwords against the HaveIBeenPwned database, ' . 'to see if your passwords are secure and safe.<br />' . 'Furthermore, <a href="https://www.troyhunt.com/introducing-306-million-freely-downloadable-pwned-passwords/">' . 'Troy Hunt explains why and how this service is important</a>.'
$db
private
static array<string|int, mixed>
$db
= ['PasswordIsPwnd' => 'Int', 'BreachedSites' => 'Text']
Methods
updateCMSFields()
public
updateCMSFields(FieldList $fields) : mixed
Parameters
- $fields : FieldList
breachedSites()
protected
breachedSites(FieldList $fields) : mixed
Parameters
- $fields : FieldList
breachFound()
protected
breachFound(FieldList $fields) : mixed
Parameters
- $fields : FieldList