diff --git a/2fa/code.php b/2fa/code.php new file mode 100644 index 0000000..a61b8a4 --- /dev/null +++ b/2fa/code.php @@ -0,0 +1,91 @@ + + + + + Misdew + + + + + + + + + + + +
+ All fields are required.
"; + unset($_SESSION['m']); + } + elseif (isset($_SESSION['m4']) == 'user_leng') { + echo "
Your username must not be greater than 13 characters.

"; + unset($_SESSION['m4']); + } + elseif (isset($_SESSION['m5']) == 'user_exi') { + echo "
That username already exists.

"; + unset($_SESSION['m5']); + } + elseif (isset($_SESSION['m3']) == 'pdnm_aumna') { + echo "
Your username must be alphanumeric and the passwords you entered did not match.

"; + unset($_SESSION['m3']); + } + elseif (isset($_SESSION['m2']) == 'user_alnum') { + echo "
Your username must be alphanumeric.

"; + unset($_SESSION['m2']); + } + elseif (isset($_SESSION['m1']) == 'chec_yapass') { + echo "
The passwords you entered did not match.

"; + unset($_SESSION['m1']); + } + elseif (isset($_SESSION['m6']) == 'gen_error') { + echo "
There was an error.

"; + unset($_SESSION['m6']); + } + session_destroy(); + ?> + Enter your login details one last time.
Enter the 2FA code that was sent to your linked email.
You will be redirected to the Hub if it is correct.


+
+ + + + + + + + + + + + + +
+ +
+ +
+ +
+ +
+
+ +
+ + diff --git a/2fa/email_hasher_sajfljasfjaw7483ufj.php b/2fa/email_hasher_sajfljasfjaw7483ufj.php new file mode 100644 index 0000000..1413ade --- /dev/null +++ b/2fa/email_hasher_sajfljasfjaw7483ufj.php @@ -0,0 +1,11 @@ + diff --git a/2fa/sendcode.php b/2fa/sendcode.php new file mode 100644 index 0000000..e13f61e --- /dev/null +++ b/2fa/sendcode.php @@ -0,0 +1,96 @@ + + Your account was successfully logged into.
+ 2FA has been enabled for your account so the code below is needed to fully login.
+ If you did not login, your account has been compromised. Please update your password immediately if you did not request a 2FA code.
+ Contact me@justa.us if you need any help.

+ Use this code on the 2FA page: $rand2facode +

+ + "; + $headers = "Content-Type: text/html; charset=utf-8"; + mail($to,$subject,$txt,$headers); + header("location: /2fa/code.php"); + exit(); + } + else { + echo "error"; + exit(); + } + + + } + else { + echo "error"; + exit(); + } + +} +else { +echo "error"; +exit(); +} +?> diff --git a/2fa/verifycode.php b/2fa/verifycode.php new file mode 100644 index 0000000..2eeaaba --- /dev/null +++ b/2fa/verifycode.php @@ -0,0 +1,94 @@ +