Bernd Wurst commited on 2023-12-09 07:57:22
Zeige 3 geänderte Dateien mit 9 Einfügungen und 5 Löschungen.
| ... | ... |
@@ -103,6 +103,7 @@ if ($req == 'getCreateArgs') {
|
| 103 | 103 |
require_once("session/start.php");
|
| 104 | 104 |
$role = find_role($uid, '', true); |
| 105 | 105 |
setup_session($role, $uid, 'passkey'); |
| 106 |
+ unset($_SESSION['challenge']); |
|
| 106 | 107 |
die(); |
| 107 | 108 |
} else {
|
| 108 | 109 |
success_msg("Die Identifikation mit dem Passkey »{$savedData['handle']}« hat funktioniert!");
|
| ... | ... |
@@ -23,11 +23,7 @@ $section = "systemuser_account"; |
| 23 | 23 |
|
| 24 | 24 |
$account = null; |
| 25 | 25 |
$role = $_SESSION['role']; |
| 26 |
-if ($role & ROLE_CUSTOMER) {
|
|
| 27 |
- $account = get_account_details($_GET['uid']); |
|
| 28 |
-} else {
|
|
| 29 |
- $account = get_account_details($_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); |
|
| 30 |
-} |
|
| 26 |
+$account = get_account_details(isset($_GET['uid']) ? $_GET['uid'] : $_SESSION['userinfo']['uid'], $_SESSION['userinfo']['customerno']); |
|
| 31 | 27 |
|
| 32 | 28 |
|
| 33 | 29 |
headline("Bearbeiten von Benutzer »{$account['username']}«");
|
| ... | ... |
@@ -53,10 +53,17 @@ foreach ($usedquota as $q) {
|
| 53 | 53 |
} |
| 54 | 54 |
$customer = get_customer_info($_SESSION['userinfo']['customerno']); |
| 55 | 55 |
$quotastring = implode('', $quota);
|
| 56 |
+ |
|
| 57 |
+$passwordlogin = ''; |
|
| 58 |
+if ($_SESSION['loginmethod'] == 'passkey' && $acc['passwordlogin'] == 1) {
|
|
| 59 |
+ $passwordlogin = '<p class=warning>Die Anmeldung per SSH ist noch mit Passwort möglich. Das können Sie ' . internal_link($prefix . 'go/systemuser/edit', 'hier ändern') . '!</p>'; |
|
| 60 |
+} |
|
| 61 |
+ |
|
| 56 | 62 |
output("<h5>Stammdaten</h5>
|
| 57 | 63 |
<div style=\"margin-left: 2em;\"> |
| 58 | 64 |
<p>Benutzername: <strong>{$acc['username']}</strong></p>
|
| 59 | 65 |
<p>Servername" . ($multiserver ? " (primär)" : '') . ": <strong>" . get_server_by_id($acc['server']) . "</strong></p> |
| 66 |
+{$passwordlogin}
|
|
| 60 | 67 |
<p>Tipp: <a href=\"https://wiki.schokokeks.org/Dateizugriff\">Wiki-Anleitung zum Dateizugriff bzw. zum Ändern der Dateien Ihrer Website.</a></p> |
| 61 | 68 |
"); |
| 62 | 69 |
output("</div>\n");
|
| 63 | 70 |