fix password resetting

This commit is contained in:
MathMan05 2025-04-03 20:43:27 -05:00
parent b10cfe00d9
commit 2c7f3aa5bc
3 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
import {Localuser} from "./localuser.js";
import {Contextmenu} from "./contextmenu.js";
import {mobile} from "./utils/utils.js";
import {getBulkUsers, setTheme, Specialuser} from "./utils/utils.js";
import {setTheme} from "./utils/utils.js";
import {MarkDown} from "./markdown.js";
import {Message} from "./message.js";
import {File} from "./file.js";

View file

@ -9,7 +9,7 @@ function generateRecArea() {
if (can) {
const a = document.createElement("a");
a.textContent = I18n.login.recover();
a.href = "/reset";
a.href = "/reset" + window.location.search;
recover.append(a);
}
}

View file

@ -35,6 +35,7 @@ function makeMenu2(email: string | void) {
email: username,
token: obj.token,
}).username = username;
window.location.href = "/login" + window.location.search;
}
},
{