Thursday, January 19, 2023
HomeWordPress Developmentplugin growth - plugabble wp_authenticate perform not works from wp-login.php

plugin growth – plugabble wp_authenticate perform not works from wp-login.php


I created in my plugin a wp_authenticate perform:

> if ( ! function_exists( 'wp_authenticate' ) ) :
>     perform wp_authenticate( $username, $password )
>     {

inside this perform, if it is the primary login I alter the password saved within the database (I do that as a result of the password was saved after an information porting from a Magento website, so it must be up to date with wp_hash_password()).

If you’re logged in from the web page

/wp-login.php

the password is up to date, however the login is just not carried out. The login works from the following try.

If as a substitute the login is carried out from the web page

/my_account

all the pieces works high-quality from the primary try.

As a result of?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments