skip to Main Content
Our free WordPress themes are downloaded over 3 MILLION times. Get them now!

Login Form 16 by Colorlib

Template Details

Author: Colorlib

Released: May, 2018

Licence: CC BY 3.0

Description

A cool login form template to be used for any website and app. Made by Colorlib.

This Post Has 3 Comments
  1. Been trying to find where to define the redirect address…not having luck. Any tips/help you could share? Thanks!

    1. Hi Lauren, I was able to redirect. Here is how I did it.
      1. Go to main.js file.
      2. go to $(‘.validate-form’).on(‘submit’, function ()(line 23).
      3. In that function make return check to return false, below code for reference.

       $('.validate-form').on('submit', function () {
              var check = true;
              var un = $("input[name=username]").val();
              var pass = $("input[name=pass]").val();
      
              for (var i = 0; i < input.length; i++) {
                  if (validate(input[i]) == false) {
                      showValidate(input[i]);
                      check = false;
                  }
              }
              if (check) {
      
                  var userData = {
                      username: un,
                      password: pass
                  };
      
                  $.post("/login", userData, function (data, status) {
      
                      if (data.message == "success") {
      
                       window.location.href = "/dashboard";
                       }
                      }
                  });
              }
              // return check;
              return false;
          });

Leave a Reply

Your email address will not be published. Required fields are marked *

Disclosure: This page contains external affiliate links that may result in us receiving a commission if you choose to purchase mentioned product. The opinions on this page are our own and we don't receive additional bonus for positive reviews.
Back To Top