6 Commits
Author SHA1 Message Date
Tower 56e3ea9fca Update: CheckUser Credentials for Login 2026-01-21 18:35:22 +01:00
Tower ae7b2bbc6e test function 2026-01-21 14:03:15 +01:00
Tower dd77ede0a5 delete unused function 2026-01-21 13:54:09 +01:00
Tower fb199dd807 Merge branch 'Dev-TEST'
# Conflicts:
#	WEBROOT/services/test.php
2026-01-21 12:40:45 +01:00
Tower 8883b5c7c5 change text 2026-01-21 12:32:23 +01:00
Tower 38e8c51960 delete something 2026-01-21 12:31:30 +01:00
2 changed files with 28 additions and 9 deletions

No files matched your search

+5 -5
View File
@@ -87,10 +87,6 @@ class getSpecificData {
}
}
function hallo() {
return "hallo";
}
public function getRequestTime(): string {
date_default_timezone_set('Europe/Berlin');
$timestamp = $_SERVER['REQUEST_TIME'] ?? time();
@@ -147,6 +143,10 @@ class getSpecificData {
return "Untrusted";
}
function test() {
return "TEST";
}
public function getAllData(): array {
return [
'Document-Root' => $this->getDocumentRoot(),
@@ -185,4 +185,4 @@ class getSpecificData {
}
echo "</pre>";
}
}
}
+23 -4
View File
@@ -20,11 +20,30 @@ class UserController {
);
}
public function UpdateUser() {
}
public function DeleteUSer() {
}
public function CheckUser($login, $passwort) {
$user = DatabaseShow(
"Benutzer",
"*",
"NAME = ? OR EMAIL = ?",
$login,
$login
);
if (empty($user)) {
return false;
}
$user = $user[0];
if (password_verify($passwort, $user['PASSWORD'])) {
return true;
}
return false;
}
}