diff --git a/wwwroot/index.html b/wwwroot/index.html index b6217dd..80f5f64 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -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/identify.dspy',{method:'POST',body:fd}); + var r=await fetch('/pccs/api/member.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||'登录失败' diff --git a/wwwroot/pccs/api/identify.dspy b/wwwroot/pccs/api/member.dspy similarity index 96% rename from wwwroot/pccs/api/identify.dspy rename to wwwroot/pccs/api/member.dspy index bbe1cf7..2d74fdc 100644 --- a/wwwroot/pccs/api/identify.dspy +++ b/wwwroot/pccs/api/member.dspy @@ -1,4 +1,4 @@ -# pccs login — identify endpoint +# pccs member auth endpoint import hashlib as _hl, datetime as _dt username = params_kw.get('username', '')