| 开发者 | hardtoskip |
|---|---|
| 更新时间 | 2026年8月2日 18:35 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL v2 or later |
| 版权网址: | 版权信息 |
[easy_secure_login] to page content, a shortcode block, or a custom PHP template with echo do_shortcode('[easy_secure_login]');.[easy_secure_login one_tap="yes"] to show the button and request the Google One Tap prompt on a custom login page./wp-content/plugins/ or install via Plugins → Add New in WordPress.[easy_secure_login]
To place the button in a PHP template, including a custom WooCommerce My Account login template, use:
<?php echo do_shortcode('[easy_secure_login]'); ?>
For example, place that line immediately after wc_get_template('myaccount/form-login-only.php'); in your custom template. The shortcode loads its own Google Sign-In script and styling, and it outputs nothing for users who are already logged in.
To also enable the Google One Tap prompt on that custom page, use:
<?php echo do_shortcode('[easy_secure_login one_tap="yes"]'); ?>
One Tap remains opt-in for shortcode pages, so adding the standard shortcode does not unexpectedly prompt visitors.
Exclude custom login pages containing this shortcode from full-page caches. Authentication state is unique to each browser and must not be served from a shared cached HTML response.
That’s it! Your site is now enhanced with Google's secure authentication.You can choose. By default, the plugin adds Google Sign-In as an alternative to the standard password login. For maximum security, you can enable the "Disable Password Login" option in the plugin's security settings. When enabled, all password-related functionality is disabled, including the login form, password reset, and standard registration forms. This protects you from brute-force and password-guessing attacks.
Yes. In the "Users" step of the wizard, you can build a whitelist of authorized Google email addresses and assign a specific WordPress role to each.
You can enable the "Allow New User Sign-Ups" option. Any user who authenticates with a Google account will have an account created for them with your chosen default role (Subscriber is recommended for safety).
Google One Tap is automatically enabled on the login page. If a user is already signed into their Google account in their browser, a small pop-up will appear, allowing them to log in to your site with a single click, without ever leaving the page. You can also choose to enable this on your homepage.
They can log in seamlessly using the Google account that matches their existing WordPress user email address. Their account will be linked automatically.
Because it can completely replace the core WordPress authentication flow, it may conflict with other plugins that modify the login process (like other social logins, 2FA, or login page customizers) if you enable the "Disable Password Login" option. It is designed to be an all-in-one solution for login security.
Yes. Add [easy_secure_login] to page content or a Shortcode block. In a PHP template, use <?php echo do_shortcode('[easy_secure_login]'); ?>. This works alongside custom WooCommerce login templates such as wc_get_template('myaccount/form-login-only.php');.
Yes. Use [easy_secure_login one_tap="yes"] in page content, a Shortcode block, or do_shortcode() in your PHP template. This adds the Continue with Google button and enables the One Tap prompt for logged-out visitors on that page.
The authentication process is handled by Google's OAuth 2.0 servers. The plugin validates browser-bound, single-use state tokens, verifies requests server-side with Google, requires verified email addresses, sanitizes submitted data, and escapes rendered data. No software can guarantee complete security, so WordPress, this plugin, themes, and other plugins should always be kept updated.
No. Exclude pages containing [easy_secure_login] from full-page caching in caching plugins, CDNs, and reverse proxies. Cached authentication markup can contain expired or browser-specific state and prevent a secure login.
one_tap="yes" shortcode option for enabling Google One Tap on custom and WooCommerce login pages.[easy_secure_login] shortcode for custom login pages and PHP templates.combined_contents.txt from distributable plugin files./wp-admin redirect.wp_safe_redirect for all login flows to prevent Open Redirect vulnerabilities.Call to undefined function is_user_logged_in()) caused by the plugin loading before the WordPress core was fully initialized.template_redirect and login_init), preventing conflicts with themes and other plugins.state parameter validation during the standard Google Sign-In flow to protect against CSRF attacks.