Closed pgnd closed 1 year ago
The problem in this case is your custom custom_login()
, as it prevents access to most wp-login.php
functionalities. Login only works by pure chance IMHO.
You probably want to change it to this, which won't cover as much as you want, but is the only way you can realistically do this in a way that isn't going to break other plugins.
-if(
- 'wp-login.php' == $pagenow &&
- $_GET['action']!= "logout" &&
- $_GET['action']!= "lostpassword"
- ) {
+ if ( 'wp-login.php' == $pagenow && ! isset( $_REQUEST['action'] ) ) {
@pgnd I'm going to close this issue noting the above.
If you can duplicate the issue without your custom login redirection, or can reproduce it with "login form" plugin that's on WordPress.org that we can look into, then feel free to comment and re-open this issue.
i'm running WP 6.1.1
with
i redir login
login/logout works as expected
i enable
two-factor
for a useri nav to login page, enter/pass user/password credentials as usual
i'm redir'd to 2fa dialog
on auth code entry+submit, i'm just redir'd to the login page
and status remains NOT logged in
in my current logs, i see
iiuc, this
touched on the issue, but not clear how to apply fix here ^^