auth_cookie_bad_username

動作鉤子
do_action( 'auth_cookie_bad_username', $cookie_elements )
引數
  • (string[]) $cookie_elements { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. @type string $username User's username. @type string $expiration The time the cookie expires as a UNIX timestamp. @type string $token User's session token used. @type string $hmac The security hash for the cookie. @type string $scheme The cookie scheme to use. }
    Required:
定義位置
相關勾子
auth_cookie_bad_hashauth_cookie_bad_session_tokenauth_cookie_malformedauth_cookie_expiredauth_cookie_valid
相關方法
validate_usernameplugin_basenamewp_switch_roles_and_userwp_authenticate_username_passwordwp_set_auth_cookieget_author_name
引入
2.7.0
棄用
-

auth_cookie_bad_username是WordPress的一個函式,用於檢查認證cookie中的使用者名稱是否無效: 這個函式用於檢測認證cookie是否被篡改,這可能表明有安全漏洞。

如果在使用者認證過程中輸入了一個錯誤的使用者名稱,則發生觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'auth_cookie_bad_username', $cookie_elements );
do_action( 'auth_cookie_bad_username', $cookie_elements );
do_action( 'auth_cookie_bad_username', $cookie_elements );

常見問題

FAQs
檢視更多 >