Note: This module includes two videos. Please watch both videos in sequence to understand the complete Login page customization process, from designing the interface to configuring its authentication logic.
Applications Login Details – Click Here
In this episode, we’ll learn how to customize the Login screen and configure its authentication flow for our Smart Vendor & Procurement System (SVPS) using the redSling UI Builder and Logic Builder.
The module is divided into two parts. In the first video, we’ll explore the existing Login page and configure its authentication logic, including API requests, credential handling, token storage, and success and failure notifications. In the second video, we’ll customize the generated Login interface to match our approved UI design, applying consistent typography, branding, input field styles, and button configurations.
In the first video, we’ll explore how the individual Login page components connect to the authentication workflow using the redSling Logic Builder.
In this video, we’ll cover:
1. Reviewing Existing Component Events
Understand how the existing Login page components are connected to application logic. We’ll review the Sign Up click event, the Email and Password input change events, and how the entered credentials are captured and stored in variables for the authentication process.
2. Configuring the Sign In Button Event
Explore the main Sign In button event and understand how its Click event initiates the authentication workflow. We’ll see how the logic prepares the API request and processes the response returned by the backend.
3. Configuring the Authentication API
Learn how to configure the authentication API request using the POST method, a reusable endpoint stored in the signin_api_url variable, and the application/json content type.
We’ll also explore how JSON.stringify is used to format the request payload before sending it to the backend.
4. Passing Login Credentials
Understand how the Email and Password values are passed to the authentication API.
We’ll explore how the userEmail and userPassword variables are mapped to the corresponding email and password payload keys and how the API response is stored in the loggedInUser variable.
5. Handling a Successful Login
Learn how the Success branch processes a successful authentication response. We’ll review how the returned user information is logged, how the authentication token is extracted from the token property of loggedInUser, and how it is stored in the generatedToken variable.
6. Storing the Authentication Token
Explore how the extracted token is saved in Session Storage using the jwt-token key. We’ll understand how the stored token can remain available during navigation within the authenticated application session.
7. Preparing Authentication Data
Learn how to use the Create Object with Key-Value Pairs blocks to organize supporting authentication information, including the base URL and authentication token.
We’ll also explore how the Logic Builder helps construct these objects visually so that the information can be reused throughout the application.
8. Displaying Login Success Notifications
Understand how the application provides feedback after successful authentication. We’ll configure the success toast message, User LoggedIn, using Success mode and the Top Right position.
9. Verifying the Runtime Environment
Explore the Runtime screen and review the active test server, runtime URL, database connection, and available routes. This helps verify that the backend environment required for the Login API is available.
10. Configuring Login Failure Handling
Learn how the Failure branch handles unsuccessful authentication requests separately from the Success branch.
We’ll review how the failure is logged to the console using Failed to login user. and how an Error toast with the same message is displayed in the Top Right position.
11. Storing Supporting Login Data
Explore how the remaining authentication logic prepares supporting information using key-value objects, converts those objects into JSON using Stringify JSON Object, and stores the resulting data for later use.
12. Reviewing the Complete Login Flow
Finally, we’ll review the complete authentication workflow, from capturing user credentials and sending the API request to processing the response, extracting and storing the token, and displaying the appropriate success or failure notification.
By the end of this video, you’ll understand how the redSling Logic Builder connects Login page components to the authentication API and manages the application’s login response.
In the second video, we’ll customize the automatically generated Login page for our Smart Vendor & Procurement System using the redSling UI Builder.
We’ll begin by reviewing the existing authentication components and configuration options, then apply our approved visual design to create a consistent, branded Login experience.
In this video, we’ll cover:
1. Opening the Existing Login Page
Learn how to access the generated Login page and launch it in the Builder. We’ll review the existing Email field, Password field, Remember Me checkbox, and Sign Up button before making any design changes.
2. Reviewing Component Configuration
Explore the Traits and Security panels available for individual components.
We’ll understand how Traits can be used to configure placeholders, component attributes, and API bindings, while the Security section provides options for validation rules, field restrictions, and component-level security settings.
3. Reviewing the Authentication Logic
Open the Logic Builder to review the authentication flow associated with the Login page. We’ll explore the existing variables, functions, conditions, and reusable logic blocks before moving on to the visual customization process.
4. Removing the Default Background
Learn how to select the main Login container and use Manage Styles to remove its existing background color and set it to transparent.
This provides a clean foundation for applying our own branding and layout.
5. Configuring Project Branding
Customize the existing project title to display Smart Vendor & Procurement System.
We’ll apply Poppins typography with a font size of 32px, font weight of 700, line height of 40px, white text, and left alignment.
These settings establish the application’s visual identity within the Login screen.
6. Adding the Project Description
Add the description Procurement & Vendor Management Portal below the project title.
We’ll apply Poppins typography with a font size of 14px, font weight of 400, line height of 22px, and text color #D6E4F0.
This provides users with a brief explanation of the application’s purpose before they log in.
7. Styling the Branding Panel
Customize the left-side branding container using Manage Styles.
We’ll set the background color to #0B3B5C, add 40px of padding, and apply a 16px border radius to create a visually balanced branding panel that aligns with the SVPS design.
8. Updating the Login Header
Customize the Login form heading by replacing the existing text with Welcome Back.
We’ll use Poppins with a font size of 28px, font weight of 600, line height of 34px, and text color #1F2937.
9. Styling the Email and Password Fields
Learn how to apply consistent styling to the Email and Password input fields.
We’ll configure their width, background, border, padding, border radius, and font size using the following properties:
#F5F7FA#D9E2ECThese settings help create a consistent and organized form layout.
10. Customizing the Login Button
Customize the primary Login button by updating its text and visual properties.
We’ll set the background color to #0B3B5C, text color to white, border radius to 8px, height to 44px, font weight to 600, and width to 100%.
This makes the primary action clearly visible and consistent with the project’s branding.
11. Saving and Previewing the Final Login Screen
Once all design changes are complete, we’ll save the page and open Preview to verify the final interface.
We’ll review the branding panel, title and description styling, input field alignment, button appearance, and overall layout to ensure that the Login screen matches the intended design.
By completing both videos, you’ll have learned how to configure the Login authentication logic and customize the Login screen for the Smart Vendor & Procurement System.
You’ll have explored how to:
These two videos demonstrate how the redSling UI Builder and Logic Builder work together to create a branded authentication interface and connect it to the application’s login workflow.
With the Login screen design and authentication logic configured, we can continue building the Smart Vendor & Procurement System by exploring the next application screens and their associated functionality.
Training Series: Smart Vendor & Procurement System
Module: Login Screen Design & Authentication Logic
Video 1: Configuring Login Authentication Logic
Video 2: Designing the Login Screen
#redSling #redSlingBuilder #LogicBuilder #UIBuilder #LoginScreen #Authentication #APIs #ApplicationDevelopment #NoCodeDevelopment #UIDesign #ProductDesign #SmartVendorProcurementSystem #DeveloperTraining #TrainingSeries