scripts/validate.js
/**
 * This method validates the form found on login.php
 * 
 * @return boolean //false if injection or empty found
 */
This method validates the form found on login.php

@return boolean //false if injection or empty found
This method validates the form found on login . php @return boolean // false if injection or empty found
function validateLogin(){
    var email = document.forms["loginForm"]["email"].value;
    var password = document.forms["loginForm"]["password"].value;
    if(validateClientSide(email) == false){
        return false;
    }
    if(validateClientSide(password) == false){
        return false;
    }
}
function validateLogin ( ) { var email = document . forms [ "loginForm" ] [ "email" ] . value ; var password = document . forms [ "loginForm" ] [ "password" ] . value ; if ( validateClientSide ( email ) == false ) { return false ; } if ( validateClientSide ( password ) == false ) { return false ; } }
This method validates the form found on login.php
This method validates the form found on login . php