From 7fc08a7afa410c96e3984cccb028bcc2f4c77106 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 11 Aug 2026 17:28:15 +0800 Subject: [PATCH] fix: use /rbac/user/up_login.dspy (works), userpassword_login.ui returns 404 --- wwwroot/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/index.html b/wwwroot/index.html index ddf6c21..925fdb9 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -155,7 +155,7 @@ async function doLogin(){ if(!u||!p){document.getElementById('login-msg').textContent='请输入用户名和密码';return} var fd=new FormData();fd.append('username',u);fd.append('passwd',p); try{ - var r=await fetch('/rbac/userpassword_login.dspy',{method:'POST',body:fd}); + var r=await fetch('/rbac/user/up_login.dspy',{method:'POST',body:fd}); var d=await r.json(); if(d.status==='ok'){closeLogin();checkLogin();document.getElementById('login-msg').textContent=''} else document.getElementById('login-msg').textContent=d.message||'登录失败';