Loginschnittstelle eingebaut

This commit is contained in:
Matthias Grief
2024-12-01 21:09:34 +01:00
committed by Safak
parent 88b652a87e
commit ed6ce6d8b7
3 changed files with 182 additions and 0 deletions

View File

@@ -15,6 +15,15 @@ class Util
return preg_replace("/[^a-zA-Z0-9_-]/", "", $string);
}
static function containsIllegalCharacters(string $string): bool
{
if(preg_match("/[^a-zA-Z0-9_-]/", $string)) {
return true;
}
return false;
}
static function readFileContent(string $filename): string|null
{
if (!file_exists($filename)) {