Skip to content
Corex

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.

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”

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 &amp;, and a < that opens no tag becomes &lt; with the quotes after it.

updateProfile(int $userId, array $fields): AccountResult

Section titled “updateProfile(int $userId, array $fields): AccountResult”