A lot of code cleanup and code sanitation done.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/login/php/authFunctions.php';
|
||||
require_once "{$_SERVER['DOCUMENT_ROOT']}/login/php/authFunctions.php";
|
||||
|
||||
if (isset($_SESSION['user'])) {
|
||||
header('location: /');
|
||||
@@ -32,7 +32,7 @@ if ($loginAttemptCount = checkLoginAttempts() > 3) {
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/src/images/favicon/apple-touch-icon.png">
|
||||
<link rel="manifest" href="/src/images/favicon/site.webmanifest">
|
||||
|
||||
<link rel="stylesheet" href="css/style.full.css" as="style">
|
||||
<link rel="stylesheet" href="css/style.full.min.css" as="style">
|
||||
</head>
|
||||
<body>
|
||||
<div class="bg-body-tertiary min-vh-100 d-flex flex-row align-items-center">
|
||||
@@ -74,11 +74,17 @@ if ($loginAttemptCount = checkLoginAttempts() > 3) {
|
||||
<p class="text-body-secondary">Login with your account</p>
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><i class="fa-solid fa-user"></i></span>
|
||||
<input name="username" class="form-control" type="text" placeholder="name@example.com">
|
||||
|
||||
<label class="flex-grow-1 m-0">
|
||||
<input name="username" class="form-control w-100" type="text" placeholder="name@example.com">
|
||||
</label>
|
||||
</div>
|
||||
<div class="input-group mb-4">
|
||||
<span class="input-group-text"><i class="fa-solid fa-lock"></i></span>
|
||||
<input name="password" class="form-control" type="password" placeholder="Password">
|
||||
|
||||
<label class="flex-grow-1 m-0">
|
||||
<input name="password" class="form-control" type="password" placeholder="Password">
|
||||
</label>
|
||||
</div>
|
||||
<div class="row pb-1">
|
||||
<div class="col-auto">
|
||||
@@ -98,12 +104,24 @@ if ($loginAttemptCount = checkLoginAttempts() > 3) {
|
||||
<h5>Enter code from your app:</h5>
|
||||
<div class="mb-3">
|
||||
<div id="code-container">
|
||||
<input name="verification-1" type="text" maxlength="1" class="code-input" autocomplete="off" autofocus>
|
||||
<input name="verification-2" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-3" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-4" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-5" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-6" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<label>
|
||||
<input name="verification-1" type="text" maxlength="1" class="code-input" autocomplete="off" autofocus>
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-2" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-3" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-4" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-5" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-6" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-primary px-4" type="submit">
|
||||
@@ -121,7 +139,7 @@ if ($loginAttemptCount = checkLoginAttempts() > 3) {
|
||||
<div class="card col-md-5 text-white bg-transparent py-5 border-0">
|
||||
<div class="card-body text-center pt-3">
|
||||
<div>
|
||||
<img class="pt-3 w-100 portal-image" alt="portal-image" width="500" height="265" style="height: auto;">
|
||||
<img class="pt-3 w-100 portal-image" alt="portal-image" width="500" height="265" style="height: auto;" src="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user