<p>As long as you're already aware of the security implications. :)</p>

<p>Write a <a href="http://pluginfactory.io" rel="nofollow noreferrer">simple plugin</a> that exposes a controller action where you pass in the user's ID to it.</p>

<p>All that action does is call:</p>

<pre><code>craft()-&gt;userSession-&gt;loginUserById($userId);
</code></pre>

CC BY-SA 3.0
2017-01-11T23:38:10.810Z
2017-01-11T23:38:10.810Z
Brad Bell
<p>Looking to setup a public facing, launchpad page that lists out all of the user accounts with a 1 click login.</p>

<p>I realize the security implications of such a page but we need something like this to rapidly test multiple accounts different sections of the site.</p>

<p>What's the best way to create something like this?</p>

<users><login>
1 click auto login for user accounts
# 1 click auto login for user accounts

(Asked by: username_0 on 2017-01-11)

Looking to setup a public facing, launchpad page that lists out all of the user accounts with a 1 click login.

I realize the security implications of such a page but we need something like this to rapidly test multiple accounts different sections of the site.

What's the best way to create something like this?

**Tags:** users, login


---

## 1 answers

### Answer by username_1 on 2017-01-11. Score: 2 | Accepted answer

As long as you're already aware of the security implications. :)
Write a simple plugin that exposes a controller action where you pass in the user's ID to it.
All that action does is call:
craft()->userSession->loginUserById($userId);


---

