Signing In a User Manually

Last updated on June 26, 2024.

This document is a guide to creating an authentication form for users to sign in manually.

Prerequisites

To follow the steps in this tutorial, you must understand the required directory structure for your codebase and understand the concept of pages and users.

Steps

Signing in a user manually is a two-step process:

  • Step 1: Create authentication form
  • Step 2: Create sign in page

Step 1: Create an Authentication Form

app/forms/sign_in.liquid

Step 2: Create Sign-In Page

app/views/pages/sign_in.liquid

Note

To set an expiration for user sessions, follow the steps outlined in the 'User Session Timeout' section of the Updating Instance Configuration tutorial.

Next Steps

Congratulations! You created a sign in page for users to sign in manually. Now you can learn about signing in a user automatically after sign up: Signing In a User Automatically after Sign-Up.

Have a suggestion for this page?

Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.