In this guide, we will walk you through how to create a Custom Login Page for your Joget app.

Creating a Login Page

The first step of this tutorial is to customize the Login Page UI of your app. This setting can be found in Configure Layout > Configure DX 8 Plain > Advanced > Progressive Web App (PWA) Settings > Login Page UI.  In the Custom HTML section of the page we will use the following code to create our custom login page:

body#login #loginForm{display: none;} <!--we hide the default form -->
.img100{height: 100% !important;};

<section class="vh-100" style="background-color: #9A616D;">
  <div class="container py-5 h-100">
    <div class="row d-flex justify-content-center align-items-center h-100">
      <div class="col col-xl-10">
        <div class="card" style="border-radius: 1rem;">
          <div class="row g-0">
            <div class="col-md-6 col-lg-5 d-none d-md-block">
              <img src=""
                alt="login form" class="img-fluid img100" style="border-radius: 1rem 0 0 1rem;" />
            <div class="col-md-6 col-lg-7 d-flex align-items-center">
              <div class="card-body p-4 p-lg-5 text-black">


                  <div class="d-flex align-items-center mb-3 pb-1">
                    <i class="fas fa-cubes fa-2x me-3" style="color: #ff6219;"></i>
                    <span class="h1 fw-bold mb-0">Logo</span>

                  <h5 class="fw-normal mb-3 pb-3" style="letter-spacing: 1px;">Sign into your account</h5>

                  <div class="form-outline mb-4">
                    <input type="text" id="fake-username" class="form-control form-control-lg" />
                    <label class="form-label" for="fake-username">Username</label>

                  <div class="form-outline mb-4">
                    <input type="password" id="fake-password" class="form-control form-control-lg" />
                    <label class="form-label" for="fake-password">Password</label>

                  <div class="pt-1 mb-4">
                    <button class="btn btn-dark btn-lg btn-block" type="button" id="fake-login">Login</button>

                  <a class="small text-muted" href="#!">Forgot password?</a>
                  <p class="mb-5 pb-lg-2" style="color: #393f81;">Don't have an account? <a href="#!"
                      style="color: #393f81;">Register here</a></p>
                  <a href="#!" class="small text-muted">Terms of use.</a>
                  <a href="#!" class="small text-muted">Privacy policy</a>


  $('#fake-login').on('click', function(){
  $('#fake-username').on('change', function(e){
  $('#fake-password').on('change', function(e){

Once configured correctly, the login page will look something like this:

Figure 1: Login page

As an unsigned user, the user will be redirected to this page whenever they would like to sign in when using this app. Please be aware that several components of this app are not fully functional, including the Privacy Policy, as it is intended as a sample app. While it provides a demonstration of certain features and functionalities, some aspects have intentionally been left incomplete for illustrative purposes. As such, it is essential to consider this aspect while exploring and testing the app. Keep that in consideration if you intend to use this as a template.

Download the Sample App

  • No labels