Nextcloud PHP API (master)

ValidatePasswordPolicyEvent extends Event
in package

This event can be emitted to request a validation of a password.

If a password policy app is installed and the password is invalid, an \OCP\HintException will be thrown.

Tags
since
18.0.0
31.0.0

Provides getContext to apply different rules per password context, e.g. account or share passwords.

Table of Contents

Properties

$context  : PasswordContext
$password  : string

Methods

__construct()  : mixed
Compatibility constructor
getContext()  : PasswordContext
Get the context this password should validated for.
getPassword()  : string
Get the password that should be validated.
isPropagationStopped()  : bool
{@inheritDoc}
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

Methods

getPassword()

Get the password that should be validated.

public getPassword() : string
Tags
since
18.0.0
Return values
string

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Attributes
#[Override]
Return values
bool

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0
On this page

Search results