Skip to content

Commit

Permalink
release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
techjewel committed Dec 16, 2022
1 parent 899ca0b commit 764f144
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 88 deletions.
10 changes: 10 additions & 0 deletions _docs/shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,13 @@ This will render only the Signup form
</code>

This will render only the Password Reset form

## Only Magic Login Form

**Short Code:**

<code>
<span>[</span>fluent_auth_magic_login<span>]<span><</span></spam>h3>Your internal Heading<span><</span>/h3>[/fluent_auth_magic_login]</span>
</code>

This will render only the magic login form
10 changes: 9 additions & 1 deletion app/Helpers/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ public static function getSetting($key, $default = false)

public static function getIp($anonymize = false)
{
static $ipAddress;

if ($ipAddress) {
return $ipAddress;
}

if (empty($_SERVER['REMOTE_ADDR'])) {
// It's a local cli request
return '127.0.0.1';
Expand Down Expand Up @@ -169,7 +175,9 @@ public static function getIp($anonymize = false)
return wp_privacy_anonymize_ip($ipAddress);
}

return sanitize_text_field(wp_unslash($ipAddress));
$ipAddress = sanitize_text_field(wp_unslash($ipAddress));

return $ipAddress;
}

public static function loadView($template, $data)
Expand Down
2 changes: 1 addition & 1 deletion app/Hooks/Handlers/BasicTasksHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function register()
add_action('fluent_auth_daily_tasks', function () {
\FluentAuth\App\Helpers\Helper::cleanUpLogs();
});

/*
* Maybe Disable Admin Bar
*/
Expand Down
4 changes: 2 additions & 2 deletions fluent-security.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin Name: FluentAuth - Auth Security Plugin
Plugin URI: https://fluentauth.com
Description: Super Simple Login & Signup Security and Social Login Plugin for WordPress
Version: 1.0.0
Version: 1.0.1
Author: Fluent Auth Team
Author URI: https://fluentauth.com
License: GPLv2 or later
Expand All @@ -16,7 +16,7 @@

define('FLUENT_AUTH_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('FLUENT_AUTH_PLUGIN_URL', plugin_dir_url(__FILE__));
define('FLUENT_AUTH_VERSION', '1.0.0');
define('FLUENT_AUTH_VERSION', '1.0.1');

class FluentAuthPlugin
{
Expand Down
Loading

0 comments on commit 764f144

Please sign in to comment.