credentials_valid()

public function credentials_valid(string $identifier): string|bool

Description

Validation callback used during login form submission. Checks whether the submitted identifier (username or email) corresponds to an existing, non-blocked user account in the configured target table.

Parameters

ParameterTypeDescriptionDefaultRequired
identifierstringThe submitted username or email value to validate.N/AYes

Return Value

TypeDescription
string|boolReturns true if the identifier is valid, or an error string if validation fails.