• Resolved danielgm

    (@danielgm)


    I noticed that temporary login URL parameters work for front-end URLs as well.

    This could be useful for sending people to an access-restricted page on the front-end directly.

    The only problem is that post login, they are redirected to the admin.

    Could you make it so they are logged in and made to stay on the page where they landed, if it is a front-end page, and just remove the token from the URL?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @danielgm,

    Thanks for bringing this up.

    Yes, it’s a very useful feature.

    We have put it into our list and will be incorporated in one of the future release of this plugin.

    But, one question though. We are creating a temporary login link from admin and giving a user link to user. So, how we will come to know where they have to be redirected once they successfully authenticated?

    It seems we have to say that user should be redirected to particular page once they successfully authenticated.

    BTW, we have already added support for “Theme My Login” plugin (see change log 1.4) where temporary user will be redirected to page which is set in Theme My Login plugin.

    Thanks for your all efforts to make this plugin more and more useful to people.

    Don’t hesitate to give your feedback/ suggestion. We will be happy to hear from you.

    BTW, if you like this plugin, please consider giving us 5 stars ratting here.

    • This reply was modified 6 years, 7 months ago by Malay Ladu. Reason: Had question
    Thread Starter danielgm

    (@danielgm)

    Theme-my-Login is good for always redirecting to the same URL depending on the user role. I was thinking about something more flexible and spontaneous.

    You would know where to redirect by remembering the initial URL called.

    Examples:

    https://wp-site.com/?wtlwp_token=0e17194f4463cc51730cb0fef7c44280 -> log in and redirect 302 -> https://wp-site.com/

    https://wp-site.com/category/widgets/?wtlwp_token=0e17194f4463cc51730cb0fef7c44280 -> log in and redirect 302 -> https://wp-site.com/category/widgets/

    https://wp-site.com/post-title?wtlwp_token=0e17194f4463cc51730cb0fef7c44280 -> log in and redirect 302 -> https://wp-site.com/post-title

    https://wp-site.com/wp-admin/edit.php?wtlwp_token=0e17194f4463cc51730cb0fef7c44280 -> log in and redirect 302 -> https://wp-site.com/wp-admin/edit.php

    In the plugin backend, you would only generate:

    https://wp-site.com/wp-admin/?wtlwp_token=0e17194f4463cc51730cb0fef7c44280 -> log in and redirect 302 -> https://wp-site.com/wp-admin/

    But you could put an info box explaining that it’s possible to append the token to other URLs in order to have the temporary user visit that particular page directly, with the privileges afforded by the chosen user role.

    @danielgm,

    Thanks for the info.

    Yes..we can implement using this method. It’s a good feature though admin have to modify generated temporary login link and then send it to the concern person.

    But, we can definitely put an info box about this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Front-end temp login’ is closed to new replies.