Extension for devise, enable login as functionality. Add link to the masquerade_path(resource) and use it.