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
1answer
99 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
25 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
1answer
39 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 ...
1
vote
0answers
100 views

Two factor authentication

i am working on a two factor authentication plugin using a third party API. API and WordPress plugin setting page are ready. now i need break default WP login process in two parts like this: This is ...
3
votes
0answers
6k views

Custom Reset Password & Forgot Password Front End Forms

I've successfully been able to redirect the default wp_login.php used for all login/registration/password reset to custom pages with the following filters: add_filter ( 'login_url', xxfunctionnamexx )...
2
votes
0answers
133 views

Login WordPress website using wp-rest api

I am using WordPress 4.8 and i am new to rest api . I have 2 websites , one is www.example.com and second is www.example.com/site2. That is second website is installed inside the first . In example....
0
votes
0answers
145 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 ...
2
votes
5answers
10k views

Login in Wordpress using external database data

I have a WP site and also have a external DB (means not WP DB) with users. The insertion process at that table uses the same algorithm as WP uses. What I'm need to do here is login in WP but using ...
7
votes
1answer
11k views

Redirect user using the 'wp_login_failed' action hook if the error is 'empty_username' or 'empty_password'

Background I'm attempting to make a seemless frontend login for a blog, while still leaving wp-login.php available to those users who know how to get there. wp-login.php is also required to ...
0
votes
0answers
34 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
51 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
91 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
32 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
1answer
825 views

I want login using email not username wordpress front end

For the login, I want to enable the user to use the email instead of the username. This is what I got so far: remove_filter('authenticate', 'wp_authenticate_username_password', 20); function ...
0
votes
0answers
21 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
27 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
1answer
1k views

How can a Firebase user registration and login be integrated into a Wordpress site?

We have an app that uses a Firebase database for users and they can register and log in using the app. I need a way to get this functionality in the website for the app but the website is a ...
1
vote
1answer
2k views

How to redirect user to a specific page based on username?

There are plugins to redirect a user role to a specific page, but is there one that can redirect a username to a specific page? I need userA to see only the page for userA. And userB to see only the ...
-1
votes
1answer
938 views

Warning: session_start(): Cannot send session cookie - headers already sent by

When I open my blog the error appears at the top. And none of the photos load either. My site is lifelong.ca Warning: session_start(): Cannot send session cookie - headers already sent by (output ...
2
votes
4answers
8k views

Auto login user with link from Mail

I created (a sort of) automatic login to WordPress by sending newsletters from providers like Mail Chip. When the user clicks on a link in this newsletter, s/he should be able to automatically log ...
2
votes
3answers
1k views

WordPress Login Footer URL

I want to change the url of the Wordpress 'Back to XXXX' on the wordpress url. I've used this function to change the logo url, but there doesnt seem to be a footerurl reference. add_filter( '...
0
votes
0answers
17 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 ...
2
votes
12answers
32k views

How to move wp-admin login page to another location? [closed]

I want to move login page physically (not virtually). Please, suggest a plugin way to do this which could alter core codes on fly (even after core code update). It can be another layer of security.
0
votes
0answers
59 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
41 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....
21
votes
5answers
44k views

wp_enqueue_script was called incorrectly

I don't know how but now I am getting this error : Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, ...
1
vote
1answer
20 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 ...
0
votes
2answers
22 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
7k views

How can I modify the default reset (lost) password email text?

I found some similar questions on here, but was unable to apply the solutions that were provided. The standard password reset email that Wordpress is sending does not provide a clickable url for ...
-1
votes
1answer
21 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
16 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
73 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
2answers
224 views

wp-login not found - All usual solutions not working

A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (removed) I came across this issue before, but this ...
0
votes
0answers
45 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
29 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
3answers
529 views

Wordpress Cant access wp-login.php

For miskate i change the url of my wordpress on settings -> general. In order to revert this i changed the wp-config.php file and add this too config.php define('WP_HOME','localhost/wordpress'); ...
0
votes
1answer
96 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. ...
0
votes
0answers
227 views

Can't login to wordpress, got ERR_EMPTY_RESPONSE after a few minutes

I have a problem, maybe you can help me. I tell you what happened. I own a Wordpress site. I bought SSL from my host, but it always got timeout on HTTPS. They recommended me to install a 'really-...
1
vote
1answer
165 views

Adding body class to login page?

I can't figure out for the life of me how to add a custom body class to the WordPress login page. I found this thread, which suggests using the admin_body_class along with this one to check if the ...
5
votes
1answer
4k views

What are the differences between wp_users and wp_usermeta tables?

What are the differences between the wp_users and wp_usermeta tables? I use the Email Login plugin and I just noticed that if a user changes his email in the profile page, it is saved in the ...
0
votes
1answer
51 views

WordPress “wp-admin” redirecting to a user account login

I’m getting a very strange error. When I try to log in to the back-end of WordPress at the address mysite.com/wp-admin, to access the back-end, I am automatically being redirected to mysite.com/login....
1
vote
0answers
178 views

How to set JWT token with PHP on successful login?

I'm creating a decoupled application: the frontend is built with React, the backend uses Wordpress. However, due to some limitations the login and registration frontend pages must use a Wordpress ...
0
votes
1answer
24 views

Prevent Subscriber Role to login

How can I prevent a Subscriber to login? I want to prevent the user role.
1
vote
0answers
34 views

How can I force the user to log in, even if they're already authenticated?

I am creating a link to a Wordpress page. In this scenario, multiple users may use the same machine and get confused about who is logged in, so every time they follow the link they must be forced to ...
15
votes
4answers
9k views

SSO / authentication integration with external 'directory service'

I'm about to start working on a prototype for a client - and one of the required features is integration with an in-house user authentication / registration system. This system will act as the ...
0
votes
0answers
27 views

how to allow login from ONLY one specific user

I'm trying to allow the login (and wp dashboard access) to a specific user/admin by using this function but something is missing or I'm doing something wrong.. function redirect_non_specific_user() { ...
0
votes
1answer
40k views

If user is logged-in display/hide something

I want to check at page load if the user is logged in or not and hide the login mask I programmed accordingly. There is a reason I'm using said login mask instead of redirecting to the WordPress ...
3
votes
2answers
8k views

Custom login redirects to wp-admin on wrong password

My custom login form redirects to the wp-admin login when an user doesn't manage to guesses his/her credentials right. How can I manage to redirect the user to the current form instead? And of course ...
1
vote
1answer
41 views

Change username before login

How to change username before submitting in login form ? I have used mobile number as username when a user registers in site. also I have removed 0 from the beginning of the mobile number. Now in ...
0
votes
1answer
62 views

How can I redirect wp-login.php but still allow logout and other actions?

My goal: Redirect visitors who go to wp-login.php (or who try to register) to the homepage. But still allow wp-login.php to function during certain actions like logout, lostpassword, and for password ...

1 3 4 5 6 7 28