WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
    • 문서
    • 포럼
  • About
  • 워드프레스와 40% 웹을 위한 여정
  • 워드프레스 6.8
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Magic Login Mail or QR Code

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

Magic Login Mail or QR Code

작성자: Katsushi Kawamori
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

Enter your email address, and send you an email with a magic link or QR Code to login without a password.

Login

  • Login with email address only.
  • Only registered users can login.
  • Password-less login from the magic link or QR code notified in the email.
  • shortcode : [magic_login]
  • action hook : do_action( 'magic_email_send', $emails | array, true | bool ) : To send the magic link simultaneously from the management account.
  • QR code login on the user’s administration screen.

Thanks

  • This plugin is a modified version of Passwordless Login.
  • The main changes are the addition of various filter hooks and the addition of the following action hooks.

Action hook

  • This is for sending bulk e-mails with a magic link for login to multiple accounts from the management screen.
  • When using this action hook, the URL of the page where the shortcode [magic_login] is placed should be specified in the filter hook ‘magic_login_mail_url’.
/** ==================================================
 * To send the magic link simultaneously from the management account.
 *
 * @param array  $emails  Multiple email addresses.
 * @param bool   true  Output notifications to the management screen immediately after sending.
 */
do_action( 'magic_email_send', $emails, true );

Filter hooks

/** ==================================================
 * Filter for magic link url with mail.
 *
 */
add_filter( 'magic_login_mail_url', function(){ return 'url'; }, 10, 1 );
/** ==================================================
 * Currently logged in user link for Magic Login Mail
 *
 * @param string $url  URL.
 * @param int    $user_id  User ID.
 * @return $url
 */
add_filter( 'magic_login_mail_user_redirect', 'redirect_url_login_users', 10, 2 );

/** ==================================================
 * Login user after redirect for Magic Login Mail
 *
 * @param string $url  URL.
 * @param int    $user_id  User ID.
 * @return $url
 */
add_filter( 'magic_login_mail_after_login_redirect', 'redirect_url_login_users', 10, 2 );

function redirect_url_login_users( $url, $user_id ){
    /* your code */
    return $url;
}
/** ==================================================
 * Filter for message with shortcode form.
 *
 */
add_filter( 'magic_login_mail_success_link_msg', function(){ return 'Message for success.'; }, 10, 1 );
add_filter( 'magic_login_mail_success_login_msg', function(){ return 'Message for success with login.'; }, 10, 1 );
add_filter( 'magic_login_mail_valid_errors', function(){ return 'Message for mail validation error.'; }, 10, 1 );
add_filter( 'magic_login_mail_email_errors', function(){ return 'Message for sent mail error.'; }, 10, 1 );
add_filter( 'magic_login_mail_invalid_token_error', function(){ return 'Message for token error.'; }, 10, 1 );
add_filter( 'magic_login_mail_form_label', function(){ return 'Message for form label.'; }, 10, 1 );
/** ==================================================
 * Filter for color with shortcode form.
 *
 */
add_filter( 'magic_login_mail_success_link_msg_back_color', function(){ return '#e7f7d3'; }, 10, 1 );
add_filter( 'magic_login_mail_success_login_msg_back_color', function(){ return '#e7f7d3'; }, 10, 1 );
add_filter( 'magic_login_mail_valid_errors_back_color', function(){ return '#ffebe8'; }, 10, 1 );
add_filter( 'magic_login_mail_email_errors_back_color', function(){ return '#ffebe8'; }, 10, 1 );
add_filter( 'magic_login_mail_invalid_token_error_back_color', function(){ return '#ffebe8'; }, 10, 1 );
/** ==================================================
 * Filter for input text size.
 *
 */
add_filter( 'magic_login_mail_input_size', function(){ return 17; }, 10, 1 );
/** ==================================================
 * Filter for class name.
 *
 */
add_filter( 'magic_login_mail_notice_class_name', function(){ return 'mynotice'; }, 10, 1 );
add_filter( 'magic_login_mail_form_class_name', function(){ return 'myform'; }, 10, 1 );
add_filter( 'magic_login_mail_label_class_name', function(){ return 'mylabel'; }, 10, 1 );
add_filter( 'magic_login_mail_input_class_name', function(){ return 'myinput'; }, 10, 1 );
add_filter( 'magic_login_mail_submit_class_name', function(){ return 'mysubmit'; }, 10, 1 );
/** ==================================================
 * Filter for message with mail subject.
 *
 */
add_filter( 'magic_login_mail_subject', function(){ return 'subject'; }, 10, 1 );
/** ==================================================
 * Filter for message with mail.
 *
 * @param string $message  message.
 * @param string $url  url.
 * @param string $exp_date_time  expiration date and time.
 */
add_filter(
    'magic_login_mail_message',
    function( $message, $url, $exp_date_time ) {

        $message .= '<br><br>' . 'You may only log in once using the link above.';

        return $message;
    },
    10,
    3
);
/** ==================================================
 * Filter for login expiration.
 *
 */
add_filter( 'magic_login_mail_expiration', function(){ return 10; }, 10, 1 );

스크린샷

  • Login form by shortcode
  • Login form
  • Login success
  • Email with magic link
  • Login error with no user
  • Login error with expired token
  • Log in with QR Code

설치

  1. Upload magic-login-mail directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

FAQ

none

후기

Great and easy!

mitbewunderer 2023년 1월 26일
Easy to install and work perfect!

5.9.1 compatible passwordless login

skillsharejp 2022년 3월 5일
This is a fork of Passwordless Login which stopped its development which is compatible with latest WP versions including 5.9.1. Thank you so much for maintaining!!
모든 2 평가 읽기

기여자 & 개발자

“Magic Login Mail or QR Code”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • Katsushi Kawamori

“Magic Login Mail or QR Code”(이)가 4 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Magic Login Mail or QR Code”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

[2.05] 2025/04/26

  • Fix – CSS.

[2.04] 2025/04/25

  • Added – Add own CSS for shortcode output.

[2.03] 2025/04/14

  • Fix – Loading the management screen.

[2.02] 2024/11/05

  • Changed – Plugin name changed from “Magic Login Mail” to “Magic Login Mail or QR Code”.

[2.01] 2024/11/05

  • Added – QR code for login is now output on the user’s administration screen.

[2.00] 2024/10/08

  • Added – QR codes containing magic links are now sent.

[1.07] 2024/09/20

  • Added – parameter addition of filter(‘magic_login_mail_message’).

[1.06] 2024/03/04

  • Fix – Elimination of short code attribute values.

1.05

Supported WordPress 6.4.
PHP 8.0 is now required.

1.04

Added class name filter(‘magic_login_mail_form_class_name’) for login form.
Added “placeholder” and “required” attributes to the email input form.

1.03

Added an option to save sent emails.

1.02

Changed input size.

1.01

Supported GlotPress.

1.00

Initial release.

기초

  • 버전 2.05
  • 최근 업데이트: 4주 전
  • 활성화된 설치 100+
  • 워드프레스 버전 4.7 또는 그 이상
  • 다음까지 시험됨: 6.8.1
  • PHP 버전 8.0 또는 그 이상
  • 언어

    Chinese (Taiwan), Dutch, Dutch (Belgium), English (US), 그리고 Japanese.

    자국어로 번역하기

  • 태그:
    emailloginpasswordlessusers
  • 고급 보기

평점

별 5점 만점에 5점.
  • 2 5-별점 후기 별 5개 2
  • 0 4-별점 후기 별 4개 0
  • 0 3-별점 후기 별 3개 0
  • 0 2-별점 후기 별 2개 0
  • 0 1-별점 후기 별 1개 0

리뷰 추가하기

모든 리뷰 보기

기여자

  • Katsushi Kawamori

지원

할 말 있으신가요? 도움이 필요하신가요?

지원 포럼 보기

기부

이 플러그인이 발전하도록 도우시겠습니까?

이 플러그인에 기부하기

  • 소개
  • 뉴스
  • 호스팅
  • 프라이버시
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 알아보기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • Visit our TikTok account
  • 유튜브 채널 방문하기
  • Visit our Tumblr account
코드는 詩다