Home › Forums › Legacy Support › 4.0 Bugs & Issues › Users created in the backend cannot log in
- This topic has 14 replies, 3 voices, and was last updated 3 years ago by Veronica.
Viewing 15 posts - 1 through 15 (of 15 total)
-
AuthorPosts
-
April 17, 2021 at 5:03 pm #353114Trott Bailey UniversitySpectatorStudents who are created by Admin are not able to log in. When they try the reset password link, they do not get any messages either. See issues via video https://vimeo.com/538115529/9c4b68adf7 Regards, Kimroy BaileyApril 19, 2021 at 1:42 pm #353385VeronicaModeratorhi the delay in response due to support holiday can you please provide us details in a private reply so we can replicate this on your site make sure you have updated to the latest version of the theme and plugins.April 19, 2021 at 2:22 pm #353397Trott Bailey UniversitySpectatorThis reply has been marked as private.April 20, 2021 at 10:26 am #353571AdaParticipantHi, I need to test this on your site as it is working fine on my setup. But I can see you are using any third party plugin to manage users so the add new user optionshows me this on your site https://prntscr.com/11qy2uc Where sas on mine it's https://prntscr.com/11qy8aj So can you share a recording of how to create a user from back-end on your site. so that I can replicate the same.April 21, 2021 at 7:01 pm #353801Trott Bailey UniversitySpectatorBulk Users created on the backend are not able to log-in to course dashboard at https://university.kimroybailey.com/tbu/ Here is a more detailed video replicating the issue https://vimeo.com/539797887/4f5200dd8d Users are created using a CSV File Imported using the Import-Export WordPress Users and WooCommerce Customers (WebToffee Import-Export) They are also granted Forum Access as 'Participant' They are then changed from Subscriber to Student When the user tries to log in on the front end the email and password combination does not work if the user attempt to recover their password they do not receive any email They are not able to log into university.kimroybailey.com/wp-login either Thank you! :)April 22, 2021 at 7:29 am #353886AdaParticipantHi, Please provide a sample users data csv file which you imported on your site. I will replicate this on my end. Upload the csv file on any file sharing platform or google drive(make it unlisted or public) and share the link with me in private reply.April 22, 2021 at 1:29 pm #353977Trott Bailey UniversitySpectatorHello @Ada Here is a link to the .csv file. https://1drop.kimroybailey.com/tbu-users-20-to-218-wplms/ After downloading the file please change the extension from .xls to .csv by clicking on the file name and editing it accordingly. Thanks KBApril 23, 2021 at 7:19 am #354097AdaParticipantHi, I tried importing users using Import and export users and customers plugin by codection https://wordpress.org/plugins/import-users-from-csv-with-meta/ And the users are receiving email to reset their password and then able to login. Please refer to following two videos https://drive.google.com/file/d/1B7nlLxI3eGKIu3n2FiLvFs1Oamd1J9ve/view https://drive.google.com/file/d/17RPhCZFGqFcSLH5ZU9o6sevg9XuJiudx/view What you can do is first try to add existing users from here on your site https://prntscr.com/11ww25i And check if users are getting invites then the can be added by clicking on the invite link. Else you can use the other plugin which I suggested and follow the steps as I did.April 23, 2021 at 8:41 am #354120Trott Bailey UniversitySpectatorThis is awesome. In the video at timestamp 04:07 how did you get the forget password email to be sent to the site admin? We don't want to have to create thousands of real email address on our server, this is a smart trick. I think this will get us going.April 24, 2021 at 7:20 am #354282AdaParticipantHi, As I had to test this for localhost so I am using mailhog to log the mails sent for the testing purpose.April 24, 2021 at 11:31 am #354340Trott Bailey UniversitySpectatorHi @Ada, Can you provide steps that we can take to use mailhog to log emails that are sent out? Thank you. KBApril 25, 2021 at 2:50 pm #354446Trott Bailey UniversitySpectatorHello @Ada, We were able to solve the issue. If anyone ever runs into this kind of trouble this the method we ended up using for adding (in this case) 2300 students to one of our courses. Step 1. Create a CSV file with All 2300 users. If you are not sure how to format the CSV file you can use this plugin https://wordpress.org/plugins/users-customers-import-export-for-wp-woocommerce/ to export your current user database, clear the cells and just keep 1 row for reference. Follow the reference Row to create your users. Step 2. Import the CSV file with the users you have created using the same plugin from above. Step 3. While these users are now in your database they will not be able to log into WPlMS PWA or Wordpress. If your users have access to their email addresses used in the CSV file they can simply request a new password using the forgot password link and your job will be finish. In our case, we created 'dummy' email address for each user and did not necessarily want to create 2300 real email address on our server just to receive a forgot password link. So we needed to find a method to receive the forgot password email without having to create the real email account. For this: Step 4. Install a Log Email plugin. This will log emails sent from your website to your users and students right in your Wordpress Admin Dashboard. A free plugin is Email Log https://wordpress.org/plugins/email-log/ The Pro version of WP Mail SMTP by WPForms has a Log Email feature https://wordpress.org/plugins/wp-mail-smtp/ which is what we used for this Regardless of the plugin, WPLMS is built on BuddyPress and BuddyPress emails will not be routed through the plugin without a special PHP file. I won't get into the boring technicalities as to why the BuddyPress emails are routed differently but here is the solution to get the reset password email logged in your admin dashboard. Step 5. Create a PHP file called bp-custom.php in the plugins folder wp-contents/plugins Step 6. Paste this code in the file
Now you can go to your PWA Screen and reset the users password unfortunately you have to do this individually for 2300 students. When Wordpress sends the new password link to the user the email will be logged by your Plugin at Step 4. Open the link in a new incognito window and reset the password and the student will now be able to successfully enjoy the great features of the WPlMS 4 dashboard. I hope this helps anyone adding students in bulk and don't necessarily want to create a real email address for the users. PS. If anyone knows how we can send reset password link in bulk without having to use the front end that would be great! Frankly if anyone knows how to do this entire process any simpler we would love to hear. Thanks KB<?php /* * * place BP customizations here * */ // Set BP to use wp_mail add_filter( 'bp_email_use_wp_mail', '__return_true' ); // Set messages to HTML remove_filter( 'wp_mail_content_type', 'set_html_content_type' ); add_filter( 'wp_mail_content_type', 'set_html_content_type' ); function set_html_content_type() { return 'text/html'; } // Use HTML template add_filter( 'bp_email_get_content_plaintext', 'get_bp_email_content_plaintext', 10, 4 ); function get_bp_email_content_plaintext( $content = '', $property = 'content_plaintext', $transform = 'replace-tokens', $bp_email ) { if ( ! did_action( 'bp_send_email' ) ) { return $content; } return $bp_email->get_template( 'add-content' ); } // Optionally change your email address and from name. add_filter('wp_mail_from','noreply_from'); function noreply_from($from) { return '[email protected]'; //Replace 'YOUR_DOMAIN.org' with email address } add_filter('wp_mail_from_name','noreply_from_name'); function noreply_from_name($name) { return 'Trott Bailey University 🎓'; //Replace 'YOUR_DOMAIN No-Reply' with the from name }
April 26, 2021 at 4:55 am #354479VeronicaModeratorhi thanks for sharing this detailed information here if you want to send a reset password link in bulk then I have searched this and found some links, sharing here https://www.greengeeks.in/tutorials/article/perform-a-mass-user-password-reset-in-wordpress/#:~:text=Go%20to%20Users%20and%20click,all%20of%20your%20registered%20users. https://wordpress.org/plugins/mass-users-password-reset/ https://bbpress.org/forums/topic/i-want-to-mail-all-users-a-password-reset-link/ https://www.wpbeginner.com/plugins/how-to-reset-passwords-for-all-users-in-wordpress/April 26, 2021 at 9:51 am #354529Trott Bailey UniversitySpectatorThank you @Veronica, You have been very helpful, we are now able to successfully mass import users and get their accounts activated. You may proceed to close this topic. Regards, KBApril 26, 2021 at 12:38 pm #354572VeronicaModeratorgood to know this information helps you and also thank you for posting this information here will help other users too -
AuthorPosts
Viewing 15 posts - 1 through 15 (of 15 total)
- The topic ‘Users created in the backend cannot log in’ is closed to new replies.