Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Fix PW reset with custom login forms
Browse files Browse the repository at this point in the history
  • Loading branch information
flegfleg committed Apr 29, 2020
1 parent 76db685 commit a7699bb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ New in this version:

## Changelog


### 0.9.4.7

* Fixed: Past bookings could be canceled.
* Fixed: Past bookings could be canceled.

### 0.9.4.5
Expand Down
8 changes: 3 additions & 5 deletions admin/cb-users/class-cb-users.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,10 @@ public function cb_redirect_prevent_dashboard() {
*/
public function cb_user_profile_redirect() {

if ( isset( $_REQUEST[ 'action' ] ) && $_REQUEST[ 'action' ] == 'lostpassword' ) {
// user is requesting a password reset, do not interfere
} else {
wp_redirect( trailingslashit( home_url() ) ); // user profile update, redirect to home page
if ( is_user_logged_in() ) { // user is logged in (updating profile), no redirect on lost password
wp_redirect( trailingslashit( home_url() ) ); // redirect to home page
exit;
}
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion commons-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Commons Booking
* Plugin URI: http://www.wielebenwir.de/projekte/commons-booking
* Description: A wordpress plugin for management and booking of common goods.
* Version: 0.9.4.7
* Version: 0.9.4.8
* Author: Florian Egermann
* Author URI: http://www.wielebenwir.de
* Text Domain: commons-booking
Expand Down
2 changes: 1 addition & 1 deletion public/class-commons-booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Commons_Booking {
*s
* @var string
*/
const VERSION = '0.9.4.7';
const VERSION = '0.9.4.8';

/**
*
Expand Down

0 comments on commit a7699bb

Please sign in to comment.