\um\frontendSecure

Class Secure

Summary

Methods
Properties
Constants
__construct()
init()
reset_password_notice()
under_maintenance_notice()
block_register_forms()
login_validate_expired_pass()
avoid_old_password()
secure_user_capabilities()
maybe_set_whitelisted_password()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : mixed

Secure constructor.

Returns

mixed

init()

init() : mixed

Adds handlers on form submissions.

Returns

mixed

reset_password_notice()

reset_password_notice() : mixed

Add Login notice for Reset Password

Returns

mixed

under_maintenance_notice()

under_maintenance_notice() : mixed

Add Login notice for Under Maintance

Returns

mixed

block_register_forms()

block_register_forms() : mixed

Block all UM Register form submissions.

Returns

mixed

login_validate_expired_pass()

login_validate_expired_pass() : mixed

Validate when user has expired password

Returns

mixed

avoid_old_password()

avoid_old_password(\WP_Error  $errors, \WP_User|\WP_Error  $user) : mixed

Prevent users from using Old Passwords on UM Password Reset form.

Parameters

\WP_Error $errors
\WP_User|\WP_Error $user

Returns

mixed

secure_user_capabilities()

secure_user_capabilities(int  $user_id) : mixed

Secure user capabilities and revoke administrative ones.

Parameters

int $user_id

Returns

mixed

maybe_set_whitelisted_password()

maybe_set_whitelisted_password(int  $user_id) : mixed

Set meta (no need to reset his password) if the user is a new registered.

Parameters

int $user_id

Returns

mixed