Custom user roles are unable to login
Custom user roles are unable to login
Custom user roles are unable to login
Unable to login after registration
Login form does not store/remember/suggest users password
You can use additional parameters while redirecting users from front-end. i.e; http://yourdomain.com/wp-login.php?frontend=true And get this parameter to check and determine whether the users have been redirected from the front-end or not. if( isset($_GET[‘frontend’]) && $GLOBALS[‘pagenow’] === ‘wp-login.php’ ) { echo “<h2 id=’fr-msg’>Message To display</h2>”; } Use this code inside your function.php or in plugin. You … Read more
How to change default username field after login
you should do so: …} else { $site_url = get_site_url().”/myloginpage/”; $has_success = true; $message[] = “Successful registration”; global $wpdb; $key = $wpdb->get_row($wpdb->prepare(“SELECT ID,user_activation_key FROM $wpdb->users WHERE user_login = %s”,$usermobile)); add_user_meta($key->ID,’usermobilenum’,$usermobile); wp_set_current_user( $newUserID, $usermobile ); wp_set_auth_cookie( $newUserID ); //do_action( ‘wp_login’, $usermobile ); $redirecturl = site_url(‘/?signup=true&login=too’); wp_redirect( $redirecturl ); exit; } } } }
I had the same question and the same issue. But with some changes to your code, you can hide the WordPress login and password fields, and still keep the social logon button. Just add the code below to your theme’s functions.php file /** * This hides the login and password fields so only the social … Read more
Yes there is an authenticate filter you can hook into in the wp_authenticate function, and return a WP_Error if the login fails. /** * Filters whether a set of user login credentials are valid. * * A WP_User object is returned if the credentials authenticate a user. * WP_Error or null otherwise. * * @since … Read more
Issue with cookies in wp-login
First change password function to MD5 in wp_users table in database. <?php /* * Template Name: Login Template Page */ get_header(); ?> <div class=”login-branding”> <p class=”login-desc” style=””>Login</p> <div class=”login-form”> <?php $args = array( ‘redirect’ => home_url(‘/wix/dss’), ‘id_username’ => ‘user_login’, ‘id_password’ => ‘user_pass’, ); ?> <?php wp_login_form( $args ); ?> </div> </div>