This commit is contained in:
@@ -18,8 +18,9 @@ $clientCookie = $config->cookiePrefix() . 'client';
|
||||
<div class="note" style="margin:18px 0 22px;">
|
||||
<strong>Wichtiger Hinweis zum Datenschutz:</strong>
|
||||
Personenbezogene und sensible Profilangaben werden bei Papa-Kind-Treff app-seitig verschluesselt gespeichert.
|
||||
Das betrifft insbesondere Profilangaben wie Vorname, Nachname, Strasse/Hausnummer, Telefonnummer, Beruf,
|
||||
Sprachen, Kurzvorstellung sowie einzelne Kinderdaten.
|
||||
Das betrifft insbesondere auch die Konto-E-Mail sowie Profilangaben wie Vorname, Nachname, Strasse/Hausnummer,
|
||||
Telefonnummer, Beruf, Sprachen, Kurzvorstellung und einzelne Kinderdaten. Fuer Login, Verifizierung und
|
||||
Passwort-Reset wird die E-Mail technisch nur ueber einen separaten HMAC-Lookup-Hash adressiert.
|
||||
</div>
|
||||
|
||||
<section>
|
||||
|
||||
@@ -10,12 +10,16 @@ $app = app();
|
||||
$pdo = $app->pdo();
|
||||
$users = [];
|
||||
$error = '';
|
||||
$emailStore = null;
|
||||
|
||||
try {
|
||||
if (!$pdo) {
|
||||
throw new RuntimeException('Keine Datenbankverbindung verfügbar.');
|
||||
}
|
||||
|
||||
$emailStore = new App\UserEmailStore($pdo);
|
||||
$emailStore->ensureSchema();
|
||||
|
||||
$hasRolesTable = false;
|
||||
try {
|
||||
$stmt = $pdo->query("SELECT 1 FROM information_schema.tables WHERE table_schema = DATABASE() AND table_name = 'user_roles' LIMIT 1");
|
||||
@@ -36,6 +40,7 @@ try {
|
||||
';
|
||||
$stmt = $pdo->query($sql);
|
||||
$users = $stmt->fetchAll(PDO::FETCH_ASSOC) ?: [];
|
||||
$users = $emailStore->decryptRowEmails($users);
|
||||
|
||||
if ($hasRolesTable && $users) {
|
||||
$roleStmt = $pdo->query('SELECT user_id, role FROM user_roles ORDER BY user_id ASC, role ASC');
|
||||
|
||||
Reference in New Issue
Block a user