Skip to content

Instantly share code, notes, and snippets.

@mcooley
Created August 15, 2010 22:13
Show Gist options
  • Save mcooley/526014 to your computer and use it in GitHub Desktop.
Save mcooley/526014 to your computer and use it in GitHub Desktop.
<!-- The login form does a POST to _session. If the login succeeds, the user will be redirected to the url in 'next'-->
<form action="/_session?next=/mydb/_design/mydb/home.html" method="POST">
<!-- The username field should be named "name" -->
<label for="user_name">Username</label><input type="text" id="user_name" name="name" /><br />
<!-- The password field should be named "password" -->
<label for="pwd">Username</label><input type="password" id="pwd" name="password" /><br />
<input type="submit" value="Log In" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment