
外掛標籤
開發者團隊
② 後台搜尋「GlocalSaino Easy Login by Magic Link」→ 直接安裝(推薦)
原文外掛簡介
Most magic-link plugins stop at “click to log in”. GlocalSaino Easy Login by Magic Link controls where a link can be used, so a forwarded, copied or intercepted link is worthless.
What makes it different
Same-browser links. A link requested from the login form only works in the browser that asked for it. Someone who reads the email on another device, or steals the link, cannot use it.
Device lock for shared links. Links you create in the dashboard can be locked to the browser of their first login. A multi-use link for a client or a support agent keeps working for them and nobody else.
IP restriction. Limit a link to an office IP, a VPN range (CIDR, IPv4 and IPv6) or to the IP of its first use.
Scanner-proof by default. Email security filters open links to check them. Opening the link only shows a “Log in” button; the click logs in, so scanners never use up single-use links.
Let users log themselves in
Request form shortcode – put [glocalsaino_magic_link_form] on any page. Users enter their email address and receive a single-use login link. The answer is always the same (“If an account exists for this email address…”), so the form never reveals who is registered. Requests are rate-limited per email address and per IP, and a hidden field stops simple bots.
Registration checkbox – new users can tick “Also email me a magic link” on the WordPress registration form, and the link is added to the welcome email WordPress already sends.
Roles you choose – administrators (or any role you pick) never receive links by email.
Redirects by role
Send each role to its own page after logging in: customers to their account, editors to the dashboard, members to the member area. A page set on the link or in the shortcode takes priority.
Links created by the administrator
256-bit tokens generated with random_bytes(); the link never contains the password.
Expiry – 15 minutes, 1 hour, 1 day, 7 days, 30 days or never.
Usage limit – 1 use (default), 5, 10 or unlimited.
Redirect page per link.
Instant revocation, copy to clipboard, status and use counter at a glance.
Use cases
Client handoff – a link that only works on the client’s own laptop.
Technical support – temporary access restricted to the support team’s IP.
Membership and course sites – members request a login link instead of resetting forgotten passwords.
Demos – open a demo site straight into the right account.
No external services, no extra database tables. Everything is free: there are no paid tiers, limits or license keys.
For developers
gselml_logged_in action – fires after every magic-link login.
gselml_redirect_to filter – change the landing page.
gselml_request_email filter – change the email that delivers requested links.
gselml_user_can_receive_emailed_links filter – decide who may receive links by email.
gselml_client_ip filter – supply the real client IP behind a proxy or CDN.
How to use
Go to Easy Login → Magic links to create links by hand, with optional IP and device restrictions.
Go to Easy Login → Settings to set up the request form, the registration checkbox, the roles that cannot get links by email and the redirects by role.
Add [glocalsaino_magic_link_form] to a page, for example your login or “My account” page.
Privacy
This plugin does not send any data to third parties and makes no external connections.
For each link it stores, in your own WordPress database, the token, the linked user ID, an optional label and redirect URL, the creation and expiry dates, a use counter with the time of the last use, and its restrictions: the allowed IP addresses, the IP address of the first login when the link is locked to it, and a keyed hash of the browser identifier when it is locked to a browser.
Device-locked links and the same-browser protection set a cookie, glocalsaino_magic_link_device, holding a random identifier. It is strictly necessary for that security feature and is not used for tracking.
The request form keeps short-lived counters (one hour) keyed by a hash of the email address and of the IP address to enforce the rate limits.
Emailed links that have expired or been used are deleted automatically. Revoking a link deletes it permanently. Deleting the plugin deletes all links and settings.
