Temporary Login Without Password - Version 1.1

Version Description

  • Bug Fixed: Temporary user redirected to login page instead of admin dashboard after successful login.
Download this release

Release Info

Developer storeapps
Plugin Icon 128x128 Temporary Login Without Password
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

includes/class-wp-temporary-login-without-password.php CHANGED
@@ -11,7 +11,7 @@ class Wp_Temporary_Login_Without_Password {
11
  public function __construct() {
12
 
13
  $this->plugin_name = 'wp-temporary-login-without-password';
14
- $this->version = '1.0';
15
 
16
  $this->load_dependencies();
17
  $this->set_locale();
11
  public function __construct() {
12
 
13
  $this->plugin_name = 'wp-temporary-login-without-password';
14
+ $this->version = '1.1';
15
 
16
  $this->load_dependencies();
17
  $this->set_locale();
public/class-wp-temporary-login-without-password-public.php CHANGED
@@ -45,7 +45,9 @@ class Wp_Temporary_Login_Without_Password_Public {
45
  wp_set_auth_cookie($user_id);
46
 
47
  do_action('wp_login', $user_login, $user);
 
48
  }
 
49
  }
50
 
51
  if (is_user_logged_in()) {
45
  wp_set_auth_cookie($user_id);
46
 
47
  do_action('wp_login', $user_login, $user);
48
+ wp_safe_redirect(admin_url()); // Redirect to admin dashboard after successfull login
49
  }
50
+ exit();
51
  }
52
 
53
  if (is_user_logged_in()) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: admin, custom login, login, temporary login, wp admin, wordpress admin, access, expiration, user, login without password
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.3
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,6 +40,10 @@ If you like Temporary Login Without Password, please leave a five star review on
40
 
41
  == Changelog ==
42
 
 
 
 
 
43
  = 1.0 =
44
 
45
  - Initial Release
4
  Tags: admin, custom login, login, temporary login, wp admin, wordpress admin, access, expiration, user, login without password
5
  Requires at least: 3.0.1
6
  Tested up to: 4.5.3
7
+ Stable tag: 1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
 
41
  == Changelog ==
42
 
43
+ = 1.1 =
44
+
45
+ - Bug Fixed: Temporary user redirected to login page instead of admin dashboard after successful login.
46
+
47
  = 1.0 =
48
 
49
  - Initial Release
temporary-login-without-password.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Temporary Login Without Password
5
  * Plugin URI: http://storeapps.org
6
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
7
- * Version: 1.0
8
  * Author: StoreApps
9
  * Author URI: http://storeapps.org
10
  * License: GPL-2.0+
4
  * Plugin Name: Temporary Login Without Password
5
  * Plugin URI: http://storeapps.org
6
  * Description: Create a temporary login link with any role using which one can access to your sytem without username and password for limited period of time.
7
+ * Version: 1.1
8
  * Author: StoreApps
9
  * Author URI: http://storeapps.org
10
  * License: GPL-2.0+