fix password resetting
This commit is contained in:
parent
b10cfe00d9
commit
2c7f3aa5bc
3 changed files with 3 additions and 2 deletions
|
@ -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";
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ function makeMenu2(email: string | void) {
|
|||
email: username,
|
||||
token: obj.token,
|
||||
}).username = username;
|
||||
window.location.href = "/login" + window.location.search;
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue