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 {Localuser} from "./localuser.js";
|
||||||
import {Contextmenu} from "./contextmenu.js";
|
import {Contextmenu} from "./contextmenu.js";
|
||||||
import {mobile} from "./utils/utils.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 {MarkDown} from "./markdown.js";
|
||||||
import {Message} from "./message.js";
|
import {Message} from "./message.js";
|
||||||
import {File} from "./file.js";
|
import {File} from "./file.js";
|
||||||
|
|
|
@ -9,7 +9,7 @@ function generateRecArea() {
|
||||||
if (can) {
|
if (can) {
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.textContent = I18n.login.recover();
|
a.textContent = I18n.login.recover();
|
||||||
a.href = "/reset";
|
a.href = "/reset" + window.location.search;
|
||||||
recover.append(a);
|
recover.append(a);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@ function makeMenu2(email: string | void) {
|
||||||
email: username,
|
email: username,
|
||||||
token: obj.token,
|
token: obj.token,
|
||||||
}).username = username;
|
}).username = username;
|
||||||
|
window.location.href = "/login" + window.location.search;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue