password invalid for customer created during checkout - passwords

I'm on a CE 1.9.3.1 with SUPEE 9652.
The password sent in the new account confirmation is blank.
Moreover, if the customer attempts to login, the error message "Invalid login or password" is displayed.
I tried what's suggested here: customer's password not displayed in email templates magento 1.9.1.0
The modification of AccountController.php didn’t helped.
However, commenting
$this->setData('password', null);
in Mage\Customer\Model\Customer.php
solved half of the problem, as customer created with the "register" form receive the password and can login, but not the one registered during checkout.
The "check out created customer" lands in “My account” after the purchase but can't log again once logged-off (until he sets a new password with forgot password button).
I thought it was relative to my theme, so I deleted all files in: /app/design/forontend/my_theme_package/my_theme_name/template But I'm still facing the same issue.
I think that the password set during checkout is somehow wrongly stored.
Any suggestions?

Got it, it was a strange issue ans I don't know where the error's coming from... The answer's here:
https://stackoverflow.com/a/42474835/7553582

Related

Shopify - Forgot password / reset password not working

I'm trying to add a Forgot/Reset Password link to my Shopify page.
I tried this:
reset
But /account/login#recover link brings me to the login page instead of to Forgot/Reset Password page.
What is the right URL for going directly to Forgot/Reset Password page?
Yes, it is correct url which one you are using. Actually forgot password form is also on the same page as login. It is hiding and showing Login/Forgot-Password based on url parameters.

Manually approving the account in shopify after registration

Whenever the user register on my Shopify website i want that account to be disabled until admin enable it from back-end panel. Currently when user is registered, his account is enabled by default.
Have searched various forums even tried Shopify support but still no luck.
There are two options. why you are not putting "request membership" sign up form instead of sign in form (disable from here)? You could use the contact page for that if you wanted. Then you get an email when they fill that out. You would create the account (just copy and paste the info) and email them an invitation. They click the link in the invite to make the password. (I think it will be a tedious task for you)
Otherwise, let them create the account, but hide the pages with the Locksmith app. Then after you approve them you would apply a "tag" to the customer account so they can see the pages and products locked with Locksmith.

how do I forget the last user using facebook js sdk

When I use FB.logout() the user gets logged out fine, but then the next time I do FB.login() it logs in the last user without the option to enter in new credentials. I can't find any information on how to forget the previously signed on user. Is there a parameter I can pass into logout or login that would forget the previous user?
I found out that the behavior I wanted could be achieved by deleting the users permissions with the following snippet before logging the user out.
FB.api(`/${fbUserId}/permissions`,
'delete',
{access_token: fbUserAccessToken})

How to create new wordpress admin user from FTP

I haven't logged into the wordpress backend of my website in a couple years.
Now, however, none of the passwords I use seem to work. I request a reset, but I NEVER get the email.
I went into PHPMyadmin to change the password of the user, but that doesn't seem to work. The site is still not accepting the new password. I created a new user from phpMyAdmin and that user is still not recognized. So I'm not sure the database I'm updating is the correct database, however it's the only one available. Have I been hacked? I don't understand how none of my passwords are working, I am not receiving lost password emails nor are any of my new users or changed passwords from the phpMyAdmin being recognized.
https://wordpress.org/support/article/resetting-your-password/
Login to your site via FTP and download your active theme's functions.php file.
Edit the file and add this code to it, right at the beginning, after the first
wp_set_password( 'password', 1 );
Put in your own new password for the main admin user. The "1" is the user ID number in the wp_users table.
Upload the modified file back to your site.
After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.
Just in case you don't have access to database and don't have the user id, use the below code in your active theme's function.php:
Refer here for more options: You can use | ID | slug | email | login
$user = get_user_by( 'email', 'user#example.com' );
$id = $user->ID;
$password = 'your_new_password'; // Plain text password
wp_set_password( $password, $user_id );
Now the new password is: your_new_password.
Make sure to remove the code after your site is loaded once. You won't be able to login without removing this code as it will reset the password everytime page loads.

Joomla mod_login vs com_user

I'm having a very weird issue with user logins.
I'm building a site where all the content/menus are only available after you login.
I made a 'login' through the Modules and assign it the "userlogin" position.
Now when I go to the home page or any page, the login box comes up, but there's also a second login form. It seems to be coming from com_user.
This com_user login form doesn't work. I can't login using any credentials. If it was working I can simply remove my login module.
Is there a way I can either:
get com_user to work with normal user logins
or
disable this and so I can only see the Module login.
I can hide it from CSS, but I want to know where it's coming from.
Check the menu link which you have created should be public.
If these are not public then whenever user clicks it, he/she will be asked for login. Thats why the second login option is coming up.