Email Login
Email Login is the default authentication method provided by LoginRadius, enabling users to log in securely using their email and password for authentication. This method is widely adopted for its simplicity, reliability, and versatility across different platforms. It also facilitates communication, password recovery, account verification, and enhanced security. It ensures secure user identification while offering flexibility in verification options.
This document explains how to enable and configure login using email and password in the LoginRadius Admin Console.
Key Features of Email Login
-
Secure Authentication
Provides a reliable and secure login method using email and password, ensuring verified user access to applications. -
Configurable Signup and Verification Flows
Offers flexibility in configuring signup flows (mandatory or optional email) and email verification settings (mandatory, optional, or disabled), catering to diverse business needs. -
Email Verification Methods
Supports multiple verification methods, including email verification codes and links, to confirm user identity efficiently. -
Customizable Email Delivery and Templates
Allows businesses to customize email delivery settings using SMTP providers and personalize email templates for branding and user communication. -
Integration Options
Seamless integration with LoginRadius APIs, SDKs, and JavaScript interfaces for user registration, email verification, and login processes across web and mobile platforms. -
Enhanced Communication and Recovery
Facilitates account notifications, password recovery, and transactional communication via email, ensuring reliable user engagement.
Configuration
To ensure a seamless authentication experience, configuring the login options correctly is crucial. LoginRadius provides a flexible and secure way to manage authentication methods, including email-based login. This section will guide you through the steps to enable email login within the LoginRadius Admin Console.
- Email Login setup
- Email Provider setup
- Email Template setup
Access the Admin Console
- Navigate to the Authentication Configuration section in the LoginRadius Admin Console.
- Locate the Email tab under Authentication Type.
Enable Email Login
- Toggle the Email option to enable login using email addresses.
Configure Signup Flow
Choose how email addresses are handled during user sign-up.
📌Note: This configuration requires at least one additional identifier (such as phone number or username) to be enabled.
- Mandatory: Users must provide an email at sign-up.
- Optional: Users can provide an email during sign-up, but another identifier must be used for account creation.
Additional Notes:
- If email is set to optional, ensure another identifier (e.g., phone number, username) is required to prevent account creation issues.
- If email is mandatory, users who do not wish to share an email cannot proceed with registration.
- Consider your authentication and account recovery setup to avoid login or access issues when choosing this configuration.
Set Up Verification Flow
- Select the desired email verification requirement:
- Mandatory Verification: Users must verify their email before logging in.
- Optional Verification: Users can log in without verifying their email.
- Disabled Verification: No verification emails will be sent.
Choose Verification Methods
- Pick the method of email verification:
- Verification Code: Users receive a code via email to confirm their identity.
- Verification Link: Users receive an email containing a link, which they click to verify their account.
- By default, LoginRadius will handle email delivery.
- To use a custom SMTP provider, click Configure Email Provider and set up the required details.
For more details on configuring email providers, please refer to this document.
- By default, LoginRadius uses a standard email template for customer emails.
- To customize the email content/template, click Configure Email template and enter the required details in either text or HTML format.
For more details on configuring email templates, please refer to this document.
Implementation Guide
This section offers a detailed walkthrough and recommendations for integrating Email registration and Email login into your back-end or front-end via Rest APIs or SDKs.
- Email Signup
- Email Verification
- Email Login
Users can create a new account in the LoginRadius database using APIs or SDKs. Choose the integration method that best fits your needs:
Integration via API | Integration via SDK | Integration via JS Interface |
---|---|---|
Use User Registration By Email API to create the Account in the LoginRadius database. This API also sends a verification link to your email based on your email verification settings. | You can use any SDKs provided by LoginRadius to create a new account based on your SDK implementation requirements. LoginRadius GitHub Repositories | Utilize the JS SDK function to generate required HTML interfaces allowing users to register new accounts using email and password. |
When users register via email, the verification settings dictate the next steps in the authentication process. These settings determine whether email verification is required before logging in or not.
Integration via API | Integration via SDK | Integration via JS SDK |
---|---|---|
During registration, the Auth User Registration by Email process sends a verification email to the customer based on the configured verification flow. To resend the verification email, the Resend Email Verification API can be used. | You can use any SDKs provided by LoginRadius to send the verification email to registered users based on your SDK implementation requirements.LoginRadius GitHub Repositories | Utilize the JS SDK function to send the users verification email. Utilize the JS SDK function to resend the user verification email. |
This section explains how users can log in using LoginRadius APIs and SDKs after creating new accounts in the LoginRadius database.
Integration via API | Integration via SDK | Integration via JS SDK |
---|---|---|
Use the Login by Email API to authenticate registered users and retrieve their user data. | You can use any SDKs provided by LoginRadius to log in to the users based on your SDK implementation requirements. LoginRadius GitHub Repositories | Utilize the JS SDK function to allow the users to log in to their accounts using email and password. |
📌 Note: Once the user logs in, you can manage their session. Please refer to this document for detailed information on configuration and managing sessions.
Best Practices
- Enable Mandatory Verification for Sensitive Applications: Ensure email verification is required for high-security platforms like financial or healthcare services.
- Customize User Interfaces: Use branding options to make email login forms user-friendly and align them with your brand.
- Test Email Deliverability: Regularly verify that all email flows, including verification and password reset, function seamlessly.
- Adapt to Regional Preferences: Make email optional in regions where phone numbers are the primary identifier.
- Use Custom SMTP Providers: Improve deliverability and brand alignment by creating a custom email provider.