1
0
forked from boos/BoosAPI

chore: prune legacy node backend and mix workflow models

This commit is contained in:
boos
2026-05-26 15:18:33 +08:00
parent 6869504119
commit 0f9fe4a81d
32 changed files with 525 additions and 5019 deletions
+14 -2
View File
@@ -179,7 +179,13 @@ mod tests {
fn captcha_is_one_time() {
let store = RegisterCaptchaStore::new();
let challenge = store.issue(None);
let answer = store.inner.lock().get(&challenge.id).unwrap().answer.clone();
let answer = store
.inner
.lock()
.get(&challenge.id)
.unwrap()
.answer
.clone();
store.verify(&challenge.id, &answer, None).unwrap();
assert_eq!(
@@ -192,7 +198,13 @@ mod tests {
fn captcha_rejects_other_ip() {
let store = RegisterCaptchaStore::new();
let challenge = store.issue(Some(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1))));
let answer = store.inner.lock().get(&challenge.id).unwrap().answer.clone();
let answer = store
.inner
.lock()
.get(&challenge.id)
.unwrap()
.answer
.clone();
assert_eq!(
store