CasperSecurity
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<!DOCTYPE html>
<html>
<head>
<title>ACAS @ YOBYTECH SOLUTION</title>
<!--Made with love by Mutiullah Samim -->
<link rel="shortcut icon" type="image/png" href="dist/img/amibi-logo-50x50.png">
<!--Bootsrap 4 CDN-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<!--Fontawesome CDN-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<!--Custom styles-->
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
@import url('https://fonts.googleapis.com/css?family=Numans');
html,body{
background-image: url('uploads/login.jpeg');
background-size: cover;
background-repeat: no-repeat;
height: auto;
width:auto;
font-family: 'Numans', sans-serif;
}
.container{
height: 100%;
align-content: center;
}
.card{
margin-top: auto;
margin-bottom: auto;
width: 400px;
background-color: rgba(247, 241, 241, 0.5) !important;
position: relative;
height:255px;
}
.social_icon span{
font-size: 60px;
margin-left: 10px;
color: #FFC312;
}
.social_icon span:hover{
color: white;
cursor: pointer;
}
.card-header h3{
color: white;
}
.social_icon{
position: absolute;
right: 20px;
top: -45px;
}
.input-group-prepend span{
width: 50px;
background-color: #FFC312;
color: black;
border:0 !important;
}
input:focus{
outline: 0 0 0 0 !important;
box-shadow: 0 0 0 0 !important;
}
.remember{
color: white;
}
.remember input
{
width: 20px;
height: 20px;
margin-left: 15px;
margin-right: 5px;
}
.login_btn{
color: black;
background-color: #FFC312;
width: 100px;
}
.login_btn:hover{
color: black;
background-color: white;
}
.links{
color: white;
}
.links a{
margin-left: 4px;
}
/*
label:not(.form-check-label):not(.custom-file-label) {
font-weight: 700;
}
.pure-material-textfield-outlined {
--pure-material-safari-helper1: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
position: relative;
display: inline-block;
padding-top: 6px;
font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
font-size: 16px;
line-height: 0.5;
overflow: hidden;
width: 100% !important;
}
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown + span, .pure-material-textfield-outlined > textarea:not(:focus):placeholder-shown + span, .pure-material-textfield-outlined > select:not(:focus):placeholder-shown + span {
font-size: inherit;
line-height: 68px;
}
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown + span, .pure-material-textfield-outlined > textarea:not(:focus):placeholder-shown + span, .pure-material-textfield-outlined > select:not(:focus):placeholder-shown + span {
font-size: inherit;
line-height: 68px;
}
.pure-material-textfield-outlined > input + span, .pure-material-textfield-outlined > textarea + span, .pure-material-textfield-outlined > select + span {
position: absolute;
top: 0;
left: 20px;
display: flex;
border-color: rgba(var(--pure-material-onsurface-rgb, 0, 123, 255), 1.6);
width: 100%;
max-height: 100%;
color: #80bdff;
font-size: 75%;
line-height: 15px;
cursor: text;
transition: color 0.2s, font-size 0.2s, line-height 0.2s;
}
label:not(.form-check-label):not(.custom-file-label) {
font-weight: 700;
}
.pure-material-textfield-outlined {
--pure-material-safari-helper1: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
position: relative;
display: inline-block;
padding-top: 6px;
font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
font-size: 16px;
line-height: 0.5;
overflow: hidden;
width: 100% !important;
}
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown, .pure-material-textfield-outlined > textarea:not(:focus):placeholder-shown, .pure-material-textfield-outlined > select:not(:focus):placeholder-shown {
border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 123, 255), 1.6);
}
.pure-material-textfield-outlined > input, .pure-material-textfield-outlined > textarea, .pure-material-textfield-outlined > select {
box-sizing: border-box;
margin: 0;
border: solid 1px;
border-color: rgba(var(--pure-material-onsurface-rgb, 0, 123, 255), 1.6);
border-top-color: transparent;
border-radius: 4px;
padding: 10px 10px 10px 10px;
width: 100% !important;
height: inherit;
color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
background-color: transparent;
box-shadow: none;
font-family: inherit;
font-size: inherit;
line-height: inherit;
caret-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
transition: border 0.2s, box-shadow 0.2s;
}
.text-capitalize {
text-transform: capitalize!important;
}
.pure-material-textfield-outlined > input:not(:focus):placeholder-shown, .pure-material-textfield-outlined > textarea:not(:focus):placeholder-shown, .pure-material-textfield-outlined > select:not(:focus):placeholder-shown {
border-top-color: rgba(var(--pure-material-onsurface-rgb, 0, 123, 255), 1.6);
}
outlined > input, .pure-material-textfield-outlined > textarea, .pure-material-textfield-outlined > select {
box-sizing: border-box;
margin: 0;
border: solid 1px;
border-color: rgba(var(--pure-material-onsurface-rgb, 0, 123, 255), 1.6);
border-top-color: transparent;
border-radius: 4px;
padding: 10px 10px 10px 10px;
width: 100% !important;
height: inherit;
color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.87);
background-color: transparent;
box-shadow: none;
font-family: inherit;
font-size: inherit;
line-height: inherit;
caret-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
transition: border 0.2s, box-shadow 0.2s;
}
.text-capitalize {
text-transform: capitalize!important;
}
.card, input {
background-color: rgba(255,255,255,0.8)!important;
}*/
.container form .title{
font-size: 30px;
font-weight: 600;
margin: 20px 0 10px 0;
position: relative;
}
.container form .title:before{
content: '';
position: absolute;
height: 4px;
width: 33px;
left: 0px;
bottom: 3px;
border-radius: 5px;
background: linear-gradient(to right, #99004d 0%, #ff0080 100%);
}
.container form .input-box{
width: 100%;
height: 45px;
margin-top: 25px;
position: relative;
}
.container form .input-box input{
width: 100%;
height: 100%;
outline: none;
font-size: 16px;
border: none;
background-color: transparent;
}
.container form .underline::before{
content: '';
position: absolute;
height: 2px;
width: 100%;
background: #ccc;
left: 0;
bottom: 0;
}
.container form .underline::after{
content: '';
position: absolute;
height: 2px;
width: 100%;
background: linear-gradient(to right, #99004d 0%, #ff0080 100%);
left: 0;
bottom: 0;
transform: scaleX(0);
transform-origin: left;
transition: all 0.3s ease;
}
.container form .input-box input:focus ~ .underline::after,
.container form .input-box input:valid ~ .underline::after{
transform: scaleX(1);
transform-origin: left;
}
.container form .button{
margin: 40px 0 20px 0;
}
.container .input-box input[type="submit"]{
background: linear-gradient(to right, #99004d 0%, #ff0080 100%);
font-size: 17px;
color: #fff;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s ease;
}
.container .input-box input[type="submit"]:hover{
letter-spacing: 1px;
background: linear-gradient(to left, #99004d 0%, #ff0080 100%);
}
.container .option{
font-size: 14px;
text-align: center;
}
.container .facebook a,
.container .twitter a{
display: block;
height: 45px;
width: 100%;
font-size: 15px;
text-decoration: none;
padding-left: 20px;
line-height: 45px;
color: #fff;
border-radius: 5px;
transition: all 0.3s ease;
}
.container .facebook i,
.container .twitter i{
padding-right: 12px;
font-size: 20px;
}
.container .twitter a{
background: linear-gradient(to right, #00acee 0%, #1abeff 100%);
margin: 20px 0 15px 0;
}
.container .twitter a:hover{
background: linear-gradient(to left, #00acee 0%, #1abeff 100%);
margin: 20px 0 15px 0;
}
.container .facebook a{
background: linear-gradient( to right, #3b5998 0%, #476bb8 100%);
margin: 20px 0 50px 0;
}
.container .facebook a:hover{
background: linear-gradient( to left, #3b5998 0%, #476bb8 100%);
margin: 20px 0 50px 0;
}
.card {
margin-top: auto;
margin-bottom: auto;
width: 400px;
background-color: rgba(247, 241, 241, 0.5) !important;
position: relative;
height: 500px!important;
}
</style>
</head>
<body>
<div class="container">
<div class="d-flex justify-content-center h-100">
<div class="card">
<div class="card-body">
<form action="connection/login/login-validate.php" method="post">
<input type="hidden" name="school_name" id="school_name" value="ACAS" />
<input type="hidden" name="dbhost" id="host" value="localhost" />
<input type="hidden" name="dbusername" id="username" value="acas_v2"/>
<input type="hidden" name="dbpassword" id="password" value="Vacas@213" />
<input type="hidden" name="dbdatabase" id="database" value="acasv2_db" />
<div class="col-md-12">
<!--div class="form-group text-center"-->
<!--label class="pure-material-textfield-outlined">
<input class="text-capitalize" type="text" name="username" placeholder=" ">
<span>User Name</span>
</label>
<label class="pure-material-textfield-outlined">
<input class="text-capitalize" type="password" name="password" placeholder=" ">
<span>Password</span>
</label>
<label class="pure-material-textfield-outlined">
<input class="text-capitalize" type="text" name="captcha" placeholder=" " size="6" max="5" min="5" autocomplete="off" required >
<span>Captcha Code</span>
</label>
</div-->
<div class="title">Login</div>
<div class="input-box underline">
<input class="" type="text" name="tenant_id" onchange="checkTenantId(this.value)" placeholder="Enter Your Tenant ID">
<div class="underline"></div>
</div>
<div class="input-box underline">
<input class="" type="text" name="username" placeholder="Enter Your User Name">
<div class="underline"></div>
</div>
<div class="input-box underline">
<input class="" type="password" name="password" placeholder="Enter Your Password">
<div class="underline"></div>
</div>
<div class="input-box underline">
<input class="text-capitalize" type="text" name="captcha" placeholder="Enter Captcha Code" size="6" max="5" min="5" autocomplete="off" >
<div class="underline"></div>
</div>
<div class="input-box">
<img src="inc/capcha.php" width="100%" height="40" border="1" alt="CAPTCHA">
</div>
<div class="input-box button">
<input type="submit" name="" value="Login">
</div>
</div>
<!--div class="col-md-12">
<div class="form-group justify-content-betwee">
<button type="submit" class="btn btn-warning btn-md text-light">Login</button>
<a class="forgot-password text-right" href="#">Forgot Password ?</a>
<a class="forgot-password text-right" href="home/modules/signup/signupp/signup.php">Sign Up</a>
</div>
</div-->
<!--div class="col-md-12">
<span style="width:73%; text-align:left; " >
<img src="inc/capcha.php" width="170" height="50" border="1" alt="CAPTCHA">
</span>
<span style="float:right; ">
<button type="submit" class="btn btn-warning btn-md text-light">Login</button>
</span>
</div-->
<!--a class="forgot-password text-right" href="#">Forgot Password ?</a>
<a class="forgot-password text-right" href="client/home/modules/customer_registration/customer_grid.php">Sign Up</a-->
<div class="col-md-12">
<span style="color:red">
<?php
if(isset($_SESSION['ERROR_MSG'])){
?>
<?php echo $_SESSION['ERROR_MSG'];?>
<?php
}
?>
</span>
</div>
</form>
<span id="user_hint" ></span>
</div>
<!--div class="card-footer">
<div class="d-flex justify-content-center links">
Don't have an account?<a href="#">Sign Up</a>
</div>
<div class="d-flex justify-content-center">
<a href="#">Forgot your password?</a>
</div>
</div-->
</div>
</div>
</div>
<?php
if(isset($_SESSION['ERROR_MSG'])){
unset($_SESSION['ERROR_MSG']);
}
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
function checkTenantId(tenantid) {
if(tenantid){
var request = $.ajax({
url: "http://localhost:8000/api/getTenantInfo",
method: "POST",
data: { 'tenantid' : tenantid },
dataType: "json"
});
request.done(function( msg ) {
//alert(JSON.stringify(msg));
$('#school_name').val(msg.data.school_name);
$('#host').val(msg.data.host);
$('#username').val(msg.data.username);
$('#password').val(msg.data.password);
$('#database').val(msg.data.database);
//$('#database').val('acasv2_db');
});
request.fail(function( jqXHR, textStatus ) {
alert( "Request failed: " + textStatus );
});
}else{
$('#school_name').val("ACAS");
$('#host').val("localhost");
$('#username').val("acas_v2");
$('#password').val("Vacas@213");
$('#database').val("acasv2_db");
}
}
</script>
</body>
</html>