updating login

This commit is contained in:
jakani24
2024-04-04 21:24:34 +02:00
parent c01444711f
commit 1f9beb9e7d
2 changed files with 6 additions and 8 deletions

View File

@@ -272,10 +272,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="serverPreview">
<p style="margin-left:10px;font-weight: bold;">Here you can see what's saved on the server:</p>
<iframe src="login.php?fn=getStoredDataHtml" id="serverPreview"></iframe>
</div>
<div> <div>
</body> </body>
</html> </html>

View File

@@ -190,14 +190,16 @@ try {
$return = new stdClass(); $return = new stdClass();
$return->success = true; $return->success = true;
//we have authenticated the user!
$_SESSION["username"]=$userName;
$_SESSION["login"]=true;
$_SESSION["perms"]="111111111111111111111111";
$_SESSION["email"]="janis.st44@gmail.com";
$_SESSION["telegram_id"]="1234";
header('Content-Type: application/json'); header('Content-Type: application/json');
print(json_encode($return)); print(json_encode($return));
// ------------------------------------
// proccess clear registrations
// ------------------------------------
} }
} catch (Throwable $ex) { } catch (Throwable $ex) {
$return = new stdClass(); $return = new stdClass();