removing logmein tokens when pw chang

This commit is contained in:
Janis Steiner
2025-01-05 11:09:45 +01:00
parent 3621a00fc1
commit b455af82b6

View File

@@ -296,6 +296,7 @@ if (!isset($_SESSION["logged_in"]) || $_SESSION["logged_in"] !== true) {
}) })
.then(data => { .then(data => {
if (data.success) { if (data.success) {
delete_all_logmein();
showSuccessModal('Password updated.'); showSuccessModal('Password updated.');
} else { } else {
showErrorModal('Failed to update password. ' + data.message); showErrorModal('Failed to update password. ' + data.message);
@@ -534,7 +535,7 @@ if (!isset($_SESSION["logged_in"]) || $_SESSION["logged_in"] !== true) {
url += '&fmt_packed=1'; url += '&fmt_packed=1';
url += '&fmt_tpm=1'; url += '&fmt_tpm=1';
url += '&rpId=auth.jakach.com'; url += '&rpId=auth.jakach.ch';
url += '&userId=' + encodeURIComponent(ascii_to_hex('<?php echo($_SESSION["username"]);?>')); url += '&userId=' + encodeURIComponent(ascii_to_hex('<?php echo($_SESSION["username"]);?>'));
url += '&userName=' + encodeURIComponent('<?php echo($_SESSION["username"]);?>'); url += '&userName=' + encodeURIComponent('<?php echo($_SESSION["username"]);?>');