The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [login]

Refers to the act of gaining access to a WordPress site, as well as the WordPress account itself.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Show Date/Hour | Plugin Last Login Wordpress [on hold]

I need some help. I install the "When Last Login" plugin, but when i'm going to users, it only appears in the following format ... Is it possible instead of appearing this format, appear with the ...
0
votes
1answer
16 views

Temporarily locked out … how long is a “short while”?

I was trying to login to an old Wordpress site I had forgotten the password too, had too many attempts at the password and got myself temporarily locked out. I have since reset the password, (...
0
votes
2answers
30 views

Cant login to wp-admin

Since my wordpress-instalation updated itself, i cant get access to the wp-admin page. All i get is a blank page with Warning: Cannot modify header information - headers already sent by (output ...
0
votes
0answers
22 views

How to make Logout Link consistently appear on all web pages?

I am using the following code to add Log In and Log Out links in the Primary Menu. Can't give a web link because the site is still under construction. //* Add a Login/Logout toggle item in WordPress ...
0
votes
0answers
15 views

Woocommerce login not working on the first try

Sometimes the woocommerce login form is not working on the first try, but it is working on the second one. There are no error messages, the POST contains all the necesarry information, and I made sure ...
0
votes
1answer
8 views

Login to admin by frontend form?

I'm developing a website by wordpress, customer want I build a custom login page and login by email, not username. And admin page with custom url '/manage/' Below my code for login: $email = $_POST['...
0
votes
0answers
11 views

Block Admin User in custom login page

I have created a separate custom login page for users login, also implemented users cant go to wp-admin without admin role. Now I also want to block admin users login, through my custom login page, ...
0
votes
0answers
6 views

Additon of a extra required fields on login page for authentication

I have added an extra required field on registration page. Please help me to get add that field on login page to authenticate. I am using theme my login and Hestia theme plugin. I am new on WordPress. ...
0
votes
0answers
19 views

Wordpress Admin login redirect to homepage

Wordpress admin page redirecting to home page after login, not at all see any admin area. For the console, it is showing 32 redirects. but not sure why it is happening For the console header, it is ...
0
votes
0answers
19 views

Wordpress 'limit_login_lockouts' using internal ip adress

i'm using AWS - Elastik Beanstalk for a Wordpress page. I have the problem that wordpress blocked the internal IP "172.31.47.52". But this is the private IP in the local Network and not the Forwarded ...
0
votes
0answers
12 views

What is the function that sets login cookies on WordPress?

I tried to look for everything on Google but I had little luck. I created a login and registration form on the same page before making a purchase if you are not logged in. To log in, use the ...
0
votes
1answer
17 views

Change wp-login to custom URL login page

I am currently using the plugin https://wordpress.org/plugins/login-logout/ to create a login/ logout button for my website. I would like to change the login URL so instead of users being directed ...
0
votes
0answers
10 views

Reset cookie for login, register and logout

I would like to better understand how WordPress login / logout cookies work. In my case I have a page that allows you to perform various operations. To see if the user is not logged in I perform the ...
0
votes
0answers
14 views

Understanding if the user logged in using the Login form of through cookie authentication

Well, it's all in the title. I hooked in wp_login, but as far as I have been able to understand from documentation this hook is alwasy fired when the user has logged in regardless of how -if a normal ...
0
votes
0answers
6 views

login password required after redirection to a new domain

I am in need of your assistance. I have deployed a password protected wp site to a new domain. After changing the sites URL and home page to a new domain (and cleared cache and checked in other ...
0
votes
1answer
24 views

Log in only by email and no username

Can you tell me a function to insert in the functions.php file to remove the login via username option? I would like the user to be able to log in only with his registered email.
0
votes
0answers
19 views

wp-cron event doesn't run when custom login API is enabled

I have a cron job on my wordpress site. which I would like to run every hour. I also have a custom login function on my site: users are directed to my site via another site which passes login ...
0
votes
1answer
15 views

how to use auth_redirect() redirect visitor to login page if they are not login when they click account and order page?

I created a drop down menu under My Account, like order, account info, address...etc, how can I just redirect all visitor to login page if they are not login?
0
votes
2answers
31 views

Auto login after reset password

I found this code around and I'm testing it but it doesn't work. How can I solve it? add_action( 'validate_password_reset', 'rsm_redirect_after_rest', 10, 2 ); function rsm_redirect_after_rest($...
0
votes
1answer
16 views

Recognize custom login page as wp-login.php

I created a custom login page and would like it to take the place of the wp-login.php page completely. For example, so that the login_head function addresses only the new customized login page. Is ...
0
votes
1answer
31 views

Check for $ _POST fields in a POST method form

I'm trying to check if the username and password fields are present in the login form. The problem is that the if (!empty ($_POST)) code does not do this to me. UPDATE: if (isset($_POST['submit-btn'...
0
votes
0answers
13 views

Create a login form where the login users are redirected

Is it possible to do such a thing? <?php if ( !is_user_logged_in() ) { ?> <!-- Users not logged in --> <form id="wp_login_form" action="" method="post"> ...
1
vote
0answers
45 views

disable site_url redirect in wp-login.php

I'm running a wordpress install on nginx, and I'm looking at novel ways of securing wp-admin. I know theres more than one way to do this (e.g. adding an http basic auth layer, login lockdown, 2FA, etc....
1
vote
1answer
26 views

Forgot password needs to redirect from wp-login to a custom page

I'm new to WordPress. My question is, Now default user forgot password redirecting to website/wp-login.php?action=lostpassword&redirect_to=http%3A%2F%2website.com%2Fuser-profile But I have a ...
0
votes
1answer
17 views

Is it necessary to sanitize wp_set_password user input?

I'm trying to add a password form to the WP registration form. See the code below. I was wondering if I need to sanitize this specific user input? (and if so how?) If I understand it correctly, WP ...
0
votes
0answers
22 views

Issues adding Recaptcha v3 to Wordpress Registration

I'm having a problem with adding Recaptcha v3 to my WP registration form. The recaptcha seems to be registered and working and communicating with Google's api. I'm running into problems when I try to ...
0
votes
0answers
17 views

Does it make sense to check a nonce on user log in?

I read the following blog post about implementing custom user log in: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/ In the post, the author walks through some PHP code for ...
0
votes
0answers
9 views

WP Multisite after login in network when try to open subdoamin it again ask login

I have a multisite with latest WP version 5.2 The problem is, When I was login in network and than try to open sub domain site, it can again ask for login. I have try define( 'COOKIE_DOMAIN', '' ); ...
1
vote
1answer
27 views

Passing username to login screen

I would like to user a single field form to pass a username to the wp-login (without password) something like mysite.com/wordpress/wp-login?username=dave - although the form could, of course be POST ...
0
votes
0answers
11 views

How to customize the 'Forgot password'-page?

I'm trying to customize the 'Forgot password'-page. I identified the following code in functions.php which I believe is creating this current (somewhat) customized 'Forgot password'-page: function ...
0
votes
0answers
15 views

custom front end login form redirect error

I'm using a custom Login Form on my wesbite. when user enters a wrong unsername or password, he gets redirected to the default wp-login.php page. I would like the user to stay on the same page, and ...
0
votes
0answers
10 views

Redirecting users to SSO for private pages without restricting standard login

I have the miniorange SSO plugin installed (https://wordpress.org/plugins/miniorange-saml-20-single-sign-on/) and I want to check users on private pages only through that SSO, logging them all in as a ...
0
votes
1answer
26 views

Styling WordPress login page - Can I change the markup on the login page?

I'm trying to make the login-page prettier, but there are several things that makes it difficult (read: impossible). I know that there are a bazillion plugins that can do some of the things, - but ...
0
votes
0answers
26 views

Utilizing Wordpress Scripts Against Remote Servers

I have a script like this, for example (excerpt): <form name="loginform" id="loginform" action="<?php echo esc_url(home_url('/')); ?>wp-login.php" method="post" class="sign_form"> <...
0
votes
1answer
33 views

add_action('init') not work

my code is add_action('init', 'user_logged_in'); function user_logged_in(){ if( is_user_logged_in() && is_page('login')){ wp_redirect(home_url()); exit; } } the page slug ...
0
votes
1answer
31 views

Display specific page if user signed in

I have a business directory website. I'd like to know how to create a page display condition. Basically, when clicking on the "add a listing" button, how do I make non-logged-in users be directly ...
0
votes
1answer
35 views

How to log into WordPress admin in MAMP

New to MAMP, but had no issues with installation and viewing the WordPress site I pulled down from my server. However, can’t figure out to log into the admin side of my site. Here’s what I’ve tried, ...
1
vote
1answer
67 views

Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past

(I've resolved this - sequencing error in wp-config.php - thanks to this answer elsewhere). I've moved a site dev to production and everything is working correctly except the login form, which is ...
0
votes
0answers
61 views

WP login admin name incorrect send to another page or site

Firstly a little overview - my site uses Wordfence (this is not the issue - just the reason for this to begin with) -- Even if Wordfence is disabled this should still work. *its just what brought ...
0
votes
0answers
21 views

Add custom security question to custom login form

I wonder if someone who knows this with security can help me out? I got a custom made login form (template and functions.php) to which I need to add a security question that I can modify directly ...
0
votes
0answers
48 views

Set redirect_to in login based on a window.location.hash from url with a # in it

I have a site that I must redirect a logged in user to a page with a # in the url. Anytime this happens the only way to grab anything after the # is using JavaScript. I know I can grab what I want ...
0
votes
0answers
30 views

Link Users to external login db

I have to create a login form and link the login button to an external database. I already have the external database with users data. So basically, it will have to check if the user exists and ...
0
votes
1answer
26 views

Problems with is_user_logged_in() | Function in WP

I use this code to display the user profile in WordPress: <?php if ( is_user_logged_in() ) { $current_user = wp_get_current_user(); if ( ($current_user instanceof WP_User) ) { ...
0
votes
1answer
35 views

Call header and footer on wordpress default login page

i am developing a word press site. I want to make login page as suitable to homepage. I am using a plugin for customizing the login page
0
votes
0answers
22 views

Edit User “Logged in” message

How to remove the text "You are Logged in as" from - [You are Logged in as username (logout)]. So that the end result is like this - [username (logout)]
1
vote
3answers
128 views

How can I allow password reset based on logins containing the @ character?

I'm working on a setup where user logins have to follow this format : login : user-john@doe.com Even though Wordpress has no problem creating such accounts, it seems they don't play well with ...
0
votes
1answer
14 views

Password not resetting on wordpress?

I've repeatedly tried to reset my password on the Wordpress site according to their help site but it never changes despite not throwing an error. Attempting to reset my password through the 'forgot ...
0
votes
1answer
22 views

Change Login or Logout text based on status

I'm trying to display text in a button in the header that says "LOG IN" or "LOG OUT" depending on the visitor's status. The button calls a slider action, so I just need to change the text displayed on ...
0
votes
0answers
59 views

Troubleshooting logging into the backend (wp-admin)

I have a Wordpress website on a cloud plan at Siteground. I switched the website to WPML recently. Since then, my main user (the blog author) has been unable to log into the website backend (wp-admin) ...
1
vote
1answer
31 views

Login error redirecting to wp-login page

I have a custom login page for a blog. If the user gets the logins incorrect then its re-directing them to wp-login page, but I'd like the error to be echoed out on the custom login page - is that ...