Skip to content

Use "switch back" feature with links #55

Open
@davidstosik

Description

@davidstosik

Hello,

I don't want to use the switch_user_select (because we have too many users, and it does not fit the way we're doing things). Instead, I'm generating a switch user link, as described in the README:

= link_to "Sign in as #{user.login}", "/switch_user?scope_identifier=user_#{user.id}"

How can I enable the switch back feature, and allow a user to switch back to their previous login, if they used the link above to switch, in the first place?

Is there something I could do to save the original user, and then check if present, to allow switch back?

Thanks for your help,

David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions