Skip to content

Commit

Permalink
Issue #2: Redirect anonymous user to login page then change password
Browse files Browse the repository at this point in the history
This fixes this issue by using a backdrop_goto() with a destination
query parameter sending the user back to .well-known/change-password
on successful login.

#2 (comment)
  • Loading branch information
danieljrmay committed May 4, 2022
1 parent 633cd53 commit 2f28318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion well_known.change_password.inc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ function well_known_change_password_page() {
backdrop_goto('user/' . $GLOBALS['user']->uid . '/edit');
}
else {
backdrop_goto('user/password');
backdrop_goto('user/login', array('query' => array('destination' => '.well-known/change-password')));
}
}

0 comments on commit 2f28318

Please sign in to comment.