From d7cb5e3ea12a4340b074d80ced810058076557c9 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 11 Aug 2026 18:21:52 +0800 Subject: [PATCH] =?UTF-8?q?pccs=20v1.0:=20working=20login=20at=20identify.?= =?UTF-8?q?dspy=20=E2=80=94=20all=20tests=20pass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/index.html | 2 +- wwwroot/pccs/api/{usercheck.dspy => identify.dspy} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename wwwroot/pccs/api/{usercheck.dspy => identify.dspy} (96%) diff --git a/wwwroot/index.html b/wwwroot/index.html index 0467cb6..b6217dd 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/usercheck.dspy',{method:'POST',body:fd}); + var r=await fetch('/pccs/api/identify.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/usercheck.dspy b/wwwroot/pccs/api/identify.dspy similarity index 96% rename from wwwroot/pccs/api/usercheck.dspy rename to wwwroot/pccs/api/identify.dspy index 19362ec..bbe1cf7 100644 --- a/wwwroot/pccs/api/usercheck.dspy +++ b/wwwroot/pccs/api/identify.dspy @@ -1,4 +1,4 @@ -# pccs login endpoint +# pccs login — identify endpoint import hashlib as _hl, datetime as _dt username = params_kw.get('username', '')