Changeset 2304993
- Timestamp:
- 05/14/2020 03:52:02 PM (6 years ago)
- Location:
- was-it-you
- Files:
-
- 6 edited
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
tags/1.0.1/inc/login.php (modified) (1 diff)
-
tags/1.0.1/readme.txt (modified) (1 diff)
-
trunk/inc/login.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
was-it-you/tags/1.0.1/inc/login.php
r2304800 r2304993 79 79 $site_title = get_bloginfo( 'name' ); 80 80 81 // Message body82 $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$ e- If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );81 // Message body. 82 $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$s - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip ); 83 83 84 // Set html content-type. 85 add_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ], 10 ); 84 86 wp_mail( $email_to, 'New login to your account on ' . $site_title, $message_body_text ); 85 87 88 // Reset content-type to avoid conflicts. 89 remove_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ] ); 90 91 } 92 93 /** 94 * Content type of the sent email. 95 * 96 * @return string Content type 97 */ 98 public function email_content_type() { 99 return 'text/html'; 86 100 } 87 101 -
was-it-you/tags/1.0.1/readme.txt
r2304800 r2304993 27 27 For simplicity we'll showcase and explain the available options: 28 28 **Number of IPs to save** 29 29 30 * 0 is the default setting. 30 31 * By default the plugin stores all login IPs in user history. 31 32 * Any number larger than 0 determines the number of login IPs to save in user history. 32 33 33 = Does the plugin store sany data? =34 = Does the plugin store any data? = 34 35 The plugin tracks the last IP's used to login for each account and stores them in a custom table for performance reasons. 35 36 36 = Does this plugin isGDPR compliant? =37 = Is this plugin GDPR compliant? = 37 38 This version is not GDPR compliant. The IP's are stored in plain, un-anonymized. We planed for a GDPR compliance feature soon. 38 39 -
was-it-you/trunk/inc/login.php
r2304799 r2304993 79 79 $site_title = get_bloginfo( 'name' ); 80 80 81 // Message body82 $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$ e- If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip );81 // Message body. 82 $message_body_text = sprintf( esc_html__( 'We detected a new login from: %1$s - If this was you please ignore this email. If you don\'t recognize the login attempt we recommend you to login and change your password.', 'was-it-you' ), $ip ); 83 83 84 // Set html content-type. 85 add_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ], 10 ); 84 86 wp_mail( $email_to, 'New login to your account on ' . $site_title, $message_body_text ); 85 87 88 // Reset content-type to avoid conflicts. 89 remove_filter( 'wp_mail_content_type', [ $this, 'email_content_type' ] ); 90 91 } 92 93 /** 94 * Content type of the sent email. 95 * 96 * @return string Content type 97 */ 98 public function email_content_type() { 99 return 'text/html'; 86 100 } 87 101 -
was-it-you/trunk/readme.txt
r2304799 r2304993 27 27 For simplicity we'll showcase and explain the available options: 28 28 **Number of IPs to save** 29 29 30 * 0 is the default setting. 30 31 * By default the plugin stores all login IPs in user history. 31 32 * Any number larger than 0 determines the number of login IPs to save in user history. 32 33 33 = Does the plugin store sany data? =34 = Does the plugin store any data? = 34 35 The plugin tracks the last IP's used to login for each account and stores them in a custom table for performance reasons. 35 36 36 = Does this plugin isGDPR compliant? =37 = Is this plugin GDPR compliant? = 37 38 This version is not GDPR compliant. The IP's are stored in plain, un-anonymized. We planed for a GDPR compliance feature soon. 38 39
Note: See TracChangeset
for help on using the changeset viewer.