Egin salto edukira
  • Hasi saioa
  • Izena eman
WordPress.org

Euskara

  • Itxurak
  • Pluginak
  • Albisteak
  • Laguntza
  • Honi buruz
  • Parte hartu
  • Taldea
  • Lortu WordPress
Lortu WordPress

Pluginak

  • Gogokoenak
  • Beta Probak
  • Garatzaileak
Deskargatu

Magic Login Mail

Katsushi Kawamori-(e)n arabera
  • Xehetasunak
  • Berrikuspenak
  • Instalazioa
  • Garapena
Laguntza

Deskripzioa

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

Login

  • Login with email address only.
  • Only registered users can login.
  • Password-less login from the magic link 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.

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_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.
 *
 */
add_filter( 'magic_login_mail_subject', function(){ return 'subject'; }, 10, 1 );
add_filter( 'magic_login_mail_message', function(){ return 'Message with magic link.'; }, 10, 1 );
/** ==================================================
 * Filter for login expiration.
 *
 */
add_filter( 'magic_login_mail_expiration', function(){ return 10; }, 10, 1 );

Pantaila-argazkiak

  • Login form by shortcode
  • Login form
  • Login success
  • Email with magic link
  • Login error with no user
  • Login error with expired token

Instalazioa

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

MEG

none

Berrikuspenak

Great and easy!

mitbewunderer 2023(e)ko urtarrilaren 26(a)
Easy to install and work perfect!

5.9.1 compatible passwordless login

skillsharejp 2022(e)ko martxoaren 5(a)
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!!
Irakur itzazu 2 berrikuspen guztiak

Laguntzaileak eta Garatzaileak

“Magic Login Mail” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin honi.

Laguntzaileak
  • Katsushi Kawamori

Magic Login Mail 2 eskualde-ezarpenetara itzuli da. Eskerrik asko itzultzaileei beraien ekarpenengatik.

Itzul zaitez Magic Login Mail zure hizkuntzara.

Garapena interesatzen zaizu?

Araka ezazu kodea; begira ezazu SVN biltegia, edo harpidetu garapen erregistrora RSS-(r)en bidez.

Aldaketen loga

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.

Meta

  • Bertsioa: 1.04
  • Azkenekoz eguneratua: duela hilabete 1
  • Instalazio aktiboak: 100+
  • WordPress Bertsioa: 4.7 edo handiagoa
  • 6.2.2 (e)raino probatuta.
  • PHP bertsioa: 7.0 edo handiagoa
  • Hizkuntzak:

    Chinese (Taiwan), English (US), eta Japanese.

    Itzuli zure hizkuntzara

  • Etiketak:
    emailloginpasswordlessusers
  • Ikuspegi Aurreratua

Balorazioak

Ikusi denak
  • 5 izar 2
  • 4 izar 0
  • 3 izar 0
  • 2 izar 0
  • Izar 1 0
Hasi saioa berrikuspena bidaltzeko.

Laguntzaileak

  • Katsushi Kawamori

Laguntza

Azken bi hilabeteetan konpondutako gertakariak:

1(e)tik 1

Ikusi laguntza foroa

Egizu eskaintza

Plugin honen aurrerabidearen euskarri izan nahi duzu?

Egiozu eskaintza plugin honi

  • Honi buruz
  • Albisteak
  • Ostatatzea
  • Donazioa egin
  • Swag
  • Laguntza
  • Garatzaileak
  • Parte hartu
  • Ikasi
  • Erakusleihoa
  • Pluginak
  • Itxurak
  • Ereduak
  • WordCamp
  • WordPress.TB
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Pribatutasuna
  • Kode publikoa
WordPress.org
WordPress.org

Euskara

  • Bisitatu gure Facebook orrialdea
  • Bisitatu gure Twitter kontua
  • Visit our Instagram account
  • Visit our LinkedIn account
Kodea Poesia da