strip domain from SESSID_USERNAME

This commit is contained in:
mischa 2022-09-06 14:44:44 +00:00
parent feed2f0428
commit 191805fa2b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") {
$sth->bindParam(1, $hashed, PDO::PARAM_STR);
$sth->bindParam(2, $username, PDO::PARAM_STR);
$sth->execute();
logging($SESSID_USERNAME, $domain, $LANG['Logging_password_change'], $username);
logging($SESSID_USERNAME, substr(strrchr($SESSID_USERNAME, "@"), 1), $LANG['Logging_password_change'], $username);
$message = $LANG['Password_result_succes'];
} catch(PDOException $e) {
$message = $LANG['Password_result_error'];