<p>Here is an example of how to do a login form for users with existing accounts: <a href="http://buildwithcraft.com/docs/templating/login-form" rel="nofollow">http://buildwithcraft.com/docs/templating/login-form</a></p>

<p>You can see more form examples in the left hand menu of that page.</p>

CC BY-SA 3.0
2015-06-18T15:59:33.320Z
2015-06-18T15:59:33.320Z
Brad Bell
<p>I'd like to create a template that lets visitors either a) register a new account or b) sign in to an existing account.</p>

<p>There's a sample public registration form here: <a href="http://buildwithcraft.com/docs/templating/user-registration-form" rel="nofollow">http://buildwithcraft.com/docs/templating/user-registration-form</a>.</p>

<p>However, I can't find any examples of how to enable a visitor with an existing account to sign into it.</p>

<p>Sorry if I'm missing an obvious link somewhere.</p>

<p>How do you do this? Thanks!</p>

<users><login>
End user sign in and/or registration template example
# End user sign in and/or registration template example

(Asked by: username_0 on 2015-06-18)

I'd like to create a template that lets visitors either a) register a new account or b) sign in to an existing account.

There's a sample public registration form here: <http://buildwithcraft.com/docs/templating/user-registration-form>.

However, I can't find any examples of how to enable a visitor with an existing account to sign into it.

Sorry if I'm missing an obvious link somewhere.

How do you do this? Thanks!

**Tags:** users, login


---

## 1 answers

### Answer by username_1 on 2015-06-18. Score: 1

Here is an example of how to do a login form for users with existing accounts: <http://buildwithcraft.com/docs/templating/login-form>

You can see more form examples in the left hand menu of that page.


---

