various fixes
This commit is contained in:
parent
4299e138fa
commit
1eea6cc005
9 changed files with 15 additions and 19 deletions
|
@ -198,8 +198,8 @@ async function login(username:string, password:string, captcha:string){
|
|||
}}
|
||||
try{
|
||||
const info=JSON.parse(localStorage.getItem("instanceinfo"));
|
||||
const api=info.login;
|
||||
return await fetch(api+'/auth/login',options).then(response=>response.json())
|
||||
const api=info.login+(info.login.startsWith("/")?"/":"");
|
||||
return await fetch(api+'auth/login',options).then(response=>response.json())
|
||||
.then((response) => {
|
||||
console.log(response,response.message)
|
||||
if("Invalid Form Body"===response.message){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue