• Resolved delaitec

    (@delaitec)


    Hello.
    First congratulations on the excellent work done with your plugin.

    I encountered a problem that I would like to report.

    By registering using your Google/Facebook account via the Heateor Social Login plugin https://www.ads-software.com/plugins/heateor-social-login
    Even if the status is PENDING, the user can login in the site normally.

    Even changing the user to DENIED he still manages to login in the site.

    The Heateor Social Login plugin is a great free plugin, and it would be great if NEW USER APPROVE plugin was compatible with it.

    The combination of the features of the two plugins is perfect

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @delaitec,

    Thanks for contacting us,

    I hope you are doing well, We have forwarded this to our technical team and we will get back to you.

    Thanks & Regards

    WP Experts Support Team

    Hi,

    If you could let me know about the flag that you are saving in the database to check if the user-approval is pending, we could check the same in our plugin before a user logs in using social login.

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @delaitec @heateor,

    The plugin Heateor Social Login plugin does minimal use of WordPress hooks also it does not provide any hooks to modify the authentication system of the plugin, everything is custom coded. So we cannot fix the user’s issue from our end. So I think it is better they provide the solution to the user.

    Also, In the instructions, you explain how to create invitation codes, but do not explain how to use the code.

    Could you explain, or provide the link explaining how the code is used?

    Invitation codes can be used to let certain users get Auto Approved by the system. Admin will create Invitation codes and distribute them among the users. Users will have to enter the invitation code at the respective field while registering at the site. If the invitation code is valid then the user will be auto-approved into the site.

    Here is the documentation link for invitation code functionality. It explains all the details regarding how to enable the functionality, how to add Invitation codes, and how the users can use Invitation codes in the front end.

    If you could let me know about the flag that you are saving in the database to check if the user-approval is pending, we could check the same in our plugin before a user logs in using social login.

    The user meta key for checking the user status is ‘pw_user_status’,

    If the meta value is empty or ‘approved’ or the meta key does not exist, it means the user status is approved and the user can log in.

    If the meta value is ‘denied’, the user cannot login.

    If the meta value ‘pending’, the user cannot login.

    Thank you

    • This reply was modified 1 year, 8 months ago by Mirza Hamza.
    • This reply was modified 1 year, 8 months ago by Mirza Hamza.
    Thread Starter delaitec

    (@delaitec)

    Thanks you 2 for the quick response.

    @heateor I hope that with the meta-key provided by @hamza1010 you can make the necessary adjustments to solve this questions.

    Yes, we will release the next update within the next 48 hours having this feature.

    Heateor Social Login Version 1.1.20 is compatible with the New User Approve plugin. Kindly update the plugin.

    Thread Starter delaitec

    (@delaitec)

    I already test and now work’s fine.

    Thankyou @heateor for you fast help ??

    @hamza1010, on the heateor’s plugin page, they put the information of the new compatibility with New User Approve plugin,
    See: https://www.ads-software.com/plugins/heateor-social-login/#developers

    What about you update your compatibility list to include Heateors Social Login too?

    Thankyou all for mutual colaboration.

    Thread Starter delaitec

    (@delaitec)

    Hello Again!

    Could you @heateor or @hamza1010 please explain to me:

    How I change the error message displayed when trying to login socially using Heateor, with a pending or denied user account?

    ERROR: Your account is still pending approval.

    This error message I am referring to is displayed on the page domain.com/wp-admin/?heateor_ua=1
    after trying to log in using the social network.

    The Actions new_user_approve_denied_error and new_user_approve_pending_error
    Provided by the New User Approve plugin, they only change the error messages when the login attempt is made using conventional login (Username and Password).

    This is the code I added in the functions file to change the message for pending users:

    function user_pending_error_f($message) {
    return 'Your registration is still under review, as soon as it is approved you will receive a confirmation email, wait!';
    }
    add_action('new_user_approve_pending_error', 'user_pending_error_f');

    But I would like to change also when login is pending or denied using Heateor

    How can i do this?

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hi @delaitec,

    We have replied to the new thread. Please follow up there.

    Thank you

    @delaitec Sorry, the message is hard-coded in the plugin at the moment. We will add a filter in the next update within the next 24 hours so that you can customize it.

    Thread Starter delaitec

    (@delaitec)

    Ok, Thanks.

    Thread Starter delaitec

    (@delaitec)

    @heateor @hamza1010
    Thanks to you 2 for the great help in integrating the plugins.

    Everything is working perfectly now.
    Users of the 2 tools will gain a lot from this partnership.

    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Incompatibility with Heator Social Login’ is closed to new replies.