WordPressAuthGateway
Corex\Profile\Account\WordPressAuthGateway · class · Add-ons layer
The WordPress-backed {@see AuthGateway}. Every call delegates to a core primitive — wp_signon, wp_insert_user, retrieve_password, the reset-key flow, and wp_update_user — so Corex never reimplements authentication or password hashing and inherits core’s login filters (including any rate-limiting). It returns typed {@see AccountResult}s and never exposes passwords, reset keys, or tokens.
Public API
Section titled “Public API”registrationOpen(): bool
Section titled “registrationOpen(): bool”emailExists(string $email): bool
Section titled “emailExists(string $email): bool”usernameExists(string $login): bool
Section titled “usernameExists(string $login): bool”acceptsUsername(string $username): bool
Section titled “acceptsUsername(string $username): bool”loginForAddress(string $email): string
Section titled “loginForAddress(string $email): string”createUser(string $email, string $login, string $password, string $name): AccountResult
Section titled “createUser(string $email, string $login, string $password, string $name): AccountResult”authenticate(string $login, string $password, bool $remember): AccountResult
Section titled “authenticate(string $login, string $password, bool $remember): AccountResult”requestPasswordReset(string $login): AccountResult
Section titled “requestPasswordReset(string $login): AccountResult”resetPassword(string $key, string $login, string $password): AccountResult
Section titled “resetPassword(string $key, string $login, string $password): AccountResult”displayNameAsKept(string $name): string
Section titled “displayNameAsKept(string $name): string”WordPress cleans a display name a second time as it saves a user, on the slashed text {@see self::updateProfile()} hands it: an ampersand becomes &, and a < that opens no tag becomes < with the quotes after it.