fix: login at usercheck.dspy — avoids ahserver auth/login reserved paths

This commit is contained in:
yumoqing 2026-08-11 18:20:19 +08:00
parent 9d5ee887d5
commit fc68a9bd3c
2 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ async function doLogin(){
if(!u||!p){document.getElementById('login-msg').textContent='请输入用户名和密码';return}
var fd=new FormData();fd.append('username',u);fd.append('password',p);
try{
var r=await fetch('/pccs/api/pccsauth.dspy',{method:'POST',body:fd});
var r=await fetch('/pccs/api/usercheck.dspy',{method:'POST',body:fd});
var d=await r.json();
if(d.status==='ok'){closeLogin();document.getElementById('login-msg').textContent=''}
else document.getElementById('login-msg').textContent=d.message||'登录失败'