Questions tagged [login]

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

510 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
2k views

How to allow users login to WP from external domain and make REST requests

Basically what i want to do is: Use Wordpress as a login system and data storage for web-application on another domain. Make users able to register and perform REST calls from the application. Let ...
4
votes
1answer
331 views

Why does is_user_logged_in() return false after redirect from another site?

I am developing a WordPress site that redirects to an external payment gateway after a user registers for the site. After the user makes a payment the user is redirected to a page to complete their ...
4
votes
1answer
11k views

I want to disable E-Mail verifcation / activation when a user signs up for my Wordpress site

when a new user registers an activation link is sent to his e-mail account. I want the user to enter his username, email address and password and straight register and be logged in without ...
4
votes
3answers
3k views

custom login page redirect to logged in user profile page

If I click on sign in then it should go to the login page. The issue is that when I put the link then it goes to redirect_to home page, but I want to go on user profile page instead. I don't want to ...
3
votes
1answer
595 views

how to update current logged user username

I need to keep in sync the username and the email of my users. I don't know if there is a better way so I have tried running this code right after the user updates his profile data: global $wpdb; $...
3
votes
1answer
2k views

How to resolve error “Cookies are blocked due to unexpected output.”?

I am facing an error as per below at admin panel login. "ERROR: Cookies are blocked due to unexpected output." I've tried several solutions like, Log checking (No logs are showing in log file) ...
3
votes
2answers
3k views

Gaining Login Access via the Database

I have been given a job to amend a Wordpress site. I have only been given access to Cpanel. My questions are can i log in to the back end of Wordpress via Cpanel? If you can't login via Cpanel can i ...
3
votes
1answer
191 views

WordPress Multisite Login Access

I have a multisite installation and use an .htaccess directive to close access to wp-login.php. <files wp-login.php> errordocument 403 http://example.com/restricted/ order deny,allow deny from ...
3
votes
0answers
7k 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 )...
3
votes
1answer
731 views

How do I approach removing menu items on the fly based on settings in my plugin?

I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
2
votes
0answers
191 views

How to redirect user to specific page based on the input password

I would like to ask if anyone has a ready solution for WP or recommend a plugin for password-based pages, namely: I create: a) subpage 1 and a password for it, e.g. 1234 b) subpage 2 and a password ...
2
votes
0answers
717 views

How to stay logged in on a multisite with different domains?

I understand that, if I use subdomains on a multisite, then WordPress has the built in function of keeping the users logged in. The different domains are a must. These sites were set up using the ...
2
votes
0answers
288 views

Remote REST request to check login status

There are 2 wp installations, A and B. Is it possible to do a remote rest request from site A to find out if an user is logged into site B? If yes, how? With this information adjustments would be ...
2
votes
3answers
333 views

How do I redirect a user when he is logged in after clicking on a menu

I would like to redirect my logged in users automatically to a next page if they press a button on my menu. I would like to make it that if you're not logged in you'll get on a registration page and ...
2
votes
0answers
148 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....
2
votes
0answers
32 views

advance membership managment

I have to develop user-login-account system for my web. The web will have multi-level account access. There will be a blog section (for non-restricted posts), forum section, and restricted (both ...
2
votes
1answer
55 views

Wordpress login urls

Recently we've notice allot of brute force attacks on our website. To make things more secure we decided to limit the access to the wp-login url to only a few , trusted IP addresses. <Files wp-...
2
votes
0answers
1k views

Logging in redirects to correct page but shows logged out content until forced refresh

I'm trying to change some of the content being shown to viewers based on whether they are logged in or not. I'm using the is_user_logged_in() function in my child theme's functions.php to replace the ...
2
votes
0answers
588 views

Use Wordpress with a custom OAuth2 provider

I have a fresh Wordpress installation and a working OAuth2 server in Node.js (made using oauth2orize). The only plugins I've been able to find let me use only the well-known OAuth2 endpoints such as ...
2
votes
1answer
63 views

Logins through alias

My site is hosted by a university that runs all external traffic through an alias. The actual URL of the server is accessible only on campus. Right now I have the site address set to the alias and the ...
2
votes
0answers
788 views

Bootstrap Modal as login page

I'm considering building a modal login page for my wordpress blog. I have a static link on my menu linking to custom /login page. Else, I have a redirect from private pages, where user needs to be ...
2
votes
0answers
531 views

Rendering of custom walker menu function not working properly

I have a custom function for my nav walker menu that adds custom php/html to it, which can be seen below. It renders a twitter bootstrap dropdown menu that I would like to put my login form in. ...
2
votes
0answers
163 views

Share user table from WP with Drupal

I'm developing a sister website to a well-established private site that is already built in Wordpress. I can't use Wordpress to create what I need and I am therefore using Drupal. The owners of the ...
2
votes
1answer
2k views

Firing a function AFTER redirect

I am using a function that redirects the user to a custom page, rather than wp-login in the event of errors. In my case I am using the Http Referer function to send the user back to the same page ...
2
votes
1answer
4k views

Register/Login using only phone number?

Does anybody know how WP could be configured to use only a person's phone number as credentials? The flow would be as such; User enters number ..Receives a PIN Enter the PIN .. Assigns a password to ...
1
vote
0answers
15 views

Why wp_update_user doesn't update user_activation_key on users with apostrophes in their email?

Wordpress currently allows apostrophes in email addresses. However, when a user with an apostrophe in their email tries to perform a password reset, the user_activation_key is invalid. It looks as if ...
1
vote
0answers
20 views

Forgot Password/ Password Reset Page does not exist

I honestly don't know what happened but recently the "Forgot Password" page that you go to to reset your password (usually from an email link) no longer exists. The link that is sent by ...
1
vote
1answer
25 views

Admin Panel 404 Error after login

well i've created a custom login page (NOT customizing orignal login page) and use the code below to log in users: if($_POST){ if (!empty($_POST['username']) && !empty($_POST['password'])) ...
1
vote
0answers
26 views

Conditional Login Redirect

I'm currently using the following code snippet to redirect admins to the admin dashboard and normal users to a specific site upon logging in. function my_login_redirect( $redirect_to, $request, $...
1
vote
0answers
119 views

Error thrown. Cannot create references to/from string offsets

I'm trying to access the /wp-admin on my old blog post, but when I try to get to the login page I'm getting an alert that reads as follows: "Error thrown. Cannot create references to/from string ...
1
vote
0answers
60 views

wp-login behind nginx reverse-proxy inaccessible — bad redirect?

i’ve setup WordPress on a local nginx backend instance. the backend url is https://wp.example.com:12345/ it’s served through a frontend, nginx reverse proxy, exposed at a subdir. the frontend url is ...
1
vote
0answers
31 views

What would be the best way to implement Magic Link logins in WordPress?

On the internet I saw several plugins/services offering a kind of a 'magic login' link functionality. This allows users to sign in without a password but with a magic link. That made me wondering: If ...
1
vote
0answers
144 views

How to save generated JWT token to cookies on login?

I'm developing a Chrome extension and I want my users to authenticate via my WP login page. I configured JWT Authentication for WP Rest API. I want the users to go to my website, login, and then have ...
1
vote
0answers
26 views

v5.6.2 User cannot stay logged in - wordpress_test cookie placed but not auth cookies

Running WordPress v5.6.2 with a simple Members Only function checking is_user_logged_in() and running auth_redirect() - which has worked fine up to now. Pushed upgrade to 5.6.2 and now any browser ...
1
vote
0answers
18 views

Protect sequence of pages with same password for each of two groups of users

I'm currently creating a home page (learning environment) with wordpress. It should serve for an experimental study with two conditions. Based on the condition a participant will be assigned to, he or ...
1
vote
2answers
443 views

When I try to login in wordpress it is showing "USER Doesn't Exists"

The main Issues is that I am entering the email address & password that I used in creating my WordPress site in digital but It shows that the email address & username doesn’t exist even I ...
1
vote
0answers
11 views

How can I get my Script to work on the Login page?

I am trying to disable the right click feature, on the login page, using the following code: <?php function disable_right_click() { ?> <script> jQuery(document).ready(function(){ ...
1
vote
1answer
53 views

Chrome 83 doesn't connect WP login page after update from http to https on localhost

I enabled the flag "allow-insecure-localhost" on Chrome 83 to accept my localhost WP site to cure the ERR_SSL_PROTOCOL_ERROR. But the Chrome warning page show again and cannot connect to the WP_login ...
1
vote
1answer
76 views

Programmatic Login from 3rd Party site

I'm trying to do a sort of SSO/programmatic login solution for our wordpress site from our separate web application. I don't have a lot of experience with wordpress so I assume there's something I'm ...
1
vote
0answers
19 views

Correct passwords keep appearing as incorrect

I don't know why passwords are not working... Every time a user registers on my website, their accounts are verified easily but the same passwords they use to register appear as incorrect. I have ...
1
vote
0answers
28 views

Can't login to Wordpress without hitting the Remember Me checkbox. Potential SSL implementation bi-product

Having trouble logging on to a site we have recently launched. php 7.35 WP 5.41 Everytime you go to login, the URL changes from https://example.com/wp-login.php to https://example.com/wp-login.php?...
1
vote
0answers
26 views

Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?

I am trying to write a custom user registration plugin. The plugin has 5 basic functionalities Take form data and create a user using wp_insert_iser Once a user is created, update user meta for ...
1
vote
0answers
16 views

redirect Login problems

I use this code in my funtions to redirect all the people without login to my login page, but the link "lost my password" don´t work and continue redirect to login page. Can anyone help me? Thanks ...
1
vote
0answers
37 views

wp-admin - 404 after custom login form

I create custom login form in my page with this code: add_filter('login_redirect', 'my_login_redirect', 10, 3); function my_login_redirect($redirect_to, $requested_redirect_to, $user) { if (...
1
vote
0answers
18 views

How to build a site with a map that shows where people offer and need help?

I'm trying to build a site where people can ask and offer help to each other. The idea is that people could publish "help needed" and "help offered" posts by filling in a simple form (with address ...
1
vote
1answer
205 views

Redirect subscribers to last viewed page after log-in

I want users "subscribers" to be redirected to the page they last viewed. At the moment, users are redirected to their "myaccount" profile page (my-account.php). I am trying to figure out how to ...
1
vote
0answers
77 views

WordPress login problem

I have a rather strange problem with my membership created completely through code even if on WordPress. Basically if I try to log in with a blocked URL for example: https://example.com/example ...I ...
1
vote
0answers
50 views

Cannot access wp-admin/wp-login.php (Wordpress backend) anymore, what could be wrong?

The problem I cannot access my Wordpress backend anymore. I cannot do this by going to www.sitename.com/wp-admin and not by going to www.sitename.com/wp-login.php. When I go to /wp-admin, it seems ...
1
vote
0answers
120 views

WordPress asking for login on public pages on localhost

I have started learning WordPress custom theme development few weeks ago. I have a WordPress install on my localhost running with XAMPP on Ubuntu 18.04. My problem is that when I log out from wp-...
1
vote
0answers
22 views

Can't access dashboard as administrator, login as any other level works though

Logging in as admin gets message 'you are not allowed to access this page' logging in as anything else works as normal. Have tried all the usual fixes, disabled plugins/themes restored backup etc no ...

1
2 3 4 5
11