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
7 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
6 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
20 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
10 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
4 views

Unable to login on some devices [closed]

On one device, I can login and it works just fine. However, on my device with the same login I can't login and it just keeps telling me my password is wrong. I have changed the password, cleared the ...
0
votes
0answers
12 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
8 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
20 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
24 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
28 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
25 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
30 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
60 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
11 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
37 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
20 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
28 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
16 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
118 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
18 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
32 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
28 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 ...
0
votes
1answer
26 views

Theme My Login Shortcode Doesn’t Return Anything

I have created a new page with the slug /login. In this page I have added a short code: [theme-my-login action=“login” show_links="0"] And in the TML plugin settings page, I have set the right slug ...
0
votes
0answers
16 views

Login/reg how to - help me I Im new

in my wp - woocoomerc, I would like to make that when the client logs on the web page. I want her name to appear in TOP BAR. The customer must know that it is logged in. The name or picture should ...
0
votes
1answer
20 views

How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress

I have created a Custom Login Page using wp_signon in WordPress. The code is working fine. The only issue is I am not getting as to how I redirect user back to the Referrer Page after login. ...
0
votes
1answer
37 views

Does WordPress (or a plugin) reveal login credentials to admin?

I just tried to login to an old WordPress site of mine. I forgot that I already sold the website. I tried logging in, using my login credentials, but obviously I wasn't able to login. Now my question ...
0
votes
1answer
21 views

Set logged in user based on API response

I have an external application that I want to redirect to a page on a wordpress site. The page needs to be different based on who is logged in. The application has an API endpoint which I can call ...
0
votes
0answers
34 views

is_user_logged_in() working only for admins and not other roles

I made a custom admin bar that is displayed only for logged in users. But I just noticed that with "is_user_logged_in()" function it works only for admins and not contributors or spectators. Here is ...
0
votes
0answers
19 views

Refresh page after login with litespeed cache

I am using the litespeed cache plugin and ajax login plugin. The page does not refresh after users log in. it actually seems to be refreshing, but no. I can not. // $form.data("action") for get ...
1
vote
0answers
34 views

How to fix 'Wordpress redirection loop problem in wp-login.php page'?

When I am going to the wp-login.php page of my wordpress website, the login form is not showing. Instead I can see its redirecting back infinitely to the same page. I am confused why suddenly this is ...
0
votes
3answers
54 views

Redirect after login based on user role (custom login page)

I created a custom login page and everything is OK but there is an issue. I want to redirect users to different pages based on their roles after login. My code is below but I do not know why it is not ...
0
votes
0answers
17 views

Extend Cookie with auth_cookie_expiration not working

I was trying to extend the Login Cookie with the following Code function expiration_filter($seconds, $user_id, $remember){ //if "remember me" is checked; if ( $remember ) { //WP ...
0
votes
0answers
17 views

Redirects to wrong address after logging in

Few days ago, I couldn't access admin page of my WP website, When I clicked buttons 'log in' or 'Get new password', it redirects to another IP address, not my domain or hosted IP address. I think ...
0
votes
1answer
24 views

Advice on redirect to lock site from unauthorized users

Looking for some advice on the below function. I have a web app type site built in WP. There is nothing on the site relevant to non-users, apart from the login form on the homepage. I've got some ...
1
vote
0answers
35 views

Admin user getting message 'You need a higher level of permission'

I’ve just created my new WordPress web site ( uttoxeter.com ) It worked well for a while but now if I try to modify / edit anything I get asked to log in again and when I do it says that I’ve ...
0
votes
0answers
14 views

Wordpress Multisite Login Redirecting Too Many Times

I know that this question has been asked before, but none of the solutions that I have found has solved my problem. I just installed a brand new multi site from scratch on my IIS server using sub ...
0
votes
0answers
40 views

Special link for no automatic login (no username and no password)

My goal is: Login to different wordpress sites of mine without any steps other then pressing a link. So for example the link will be: https:/domain.com/wp-login.php?username="admin"&password="...
0
votes
1answer
21 views

Updating user meta data from external link, user not logged in

My login process is exactly like this: 1- user put email in the form 2- a link sent to email for setting password 3- user click on the link and redirect to website with code like this: https://www....
1
vote
1answer
19 views

Session Experies and Get Logged Out Within Few Minutes

I have wordpress simple blog with few plugins installed. My problem is that after logging and working for few minutes (hardly 2-5 minutes), session expires and I get logged out of the admin area. ...
0
votes
2answers
21 views

I am not able to login to my wp-admin panel

I changed my Wordpress folder name in htdocs as localhost/ecom/ and now when I try to access localhost/ecom/wp-admin/ it shows page not found
1
vote
1answer
17 views

Redirect user to previous page after signup from custom form

I've looked on here and found lots of references to this, but none have worked for me, probably because there must be something in the custom code I am modifying that I don't quite understand. Having ...
-1
votes
1answer
18 views

Trying to create a log in system but getting error “Parse error: syntax error, unexpected 'else' (T_ELSE) ” [closed]

I have directly copied the code from a tutorail video that I have been watching and even got a hold of his code files and directly copied and pasted just to make sure but this error keeps popping up. ...
0
votes
0answers
14 views

Share Login WordPress Multi sites

How do I share logins with WordPress MultiSite? Please don't mark it duplicate cause I have never seen a post with Multi Site. I only see multiple sites. I have 5 multi-sites. I have a main site with ...
-2
votes
1answer
26 views

Unable to login after adding ReCaptacha without API key

I was try to add recaptcha but accidently I got logged out and now I can't loogin to my wordpress. Please help me.
0
votes
0answers
35 views

WordPress password reset not working

First off, the site is a cloned site. I can login to the source site no problem, with 2 different accounts. But on the cloned site, neither login works. I tried resetting the password, and the ...
1
vote
0answers
24 views

How to debug my custom login form looping intermittently

I have a custom log in form for users of my website where they can log in then view some information that related to them. The problem is sometimes this form will loop. I will get the message "login ...
0
votes
1answer
61 views

Different Domains in Multisite Setup

I am using WordPress multisite setup to set the following structure example.com sub1.examples.com example.net Note that this is a single multisite setup, but it has two main domains and a subdomain. ...