alpha
Login
or
Join now
pds.dad
/
pds-gatekeeper
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Microservice to bring 2FA to self hosted PDSes
Star
0
Fork
3
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
never got pushed to main (whoops)
author
Bailey Townsend
date
3 months ago
(Mar 2, 2026, 9:28 AM -0600)
commit
483c4784
483c4784c7d1e3c24aef4e90f403f64f02d86a48
parent
ca02ceff
ca02ceff4e2febe62fc78a7781f15136d4b4a714
+5
-5
1 changed file
Expand all
Collapse all
Unified
Split
src
gate.rs
+5
-5
src/gate.rs
Reviewed
···
38
38
redirect_url: Option<String>,
39
39
}
40
40
41
41
-
/// GET /gate - Display the captcha page
41
41
+
/// GET /gate/signup - Display the captcha page
42
42
pub async fn get_gate(
43
43
Query(params): Query<GateQuery>,
44
44
State(state): State<AppState>,
···
75
75
.into_response()
76
76
}
77
77
78
78
-
/// POST /gate - Verify captcha and redirect
78
78
+
/// POST /gate/signup - Verify captcha and redirect
79
79
pub async fn post_gate(
80
80
State(state): State<AppState>,
81
81
Query(params): Query<GateQuery>,
···
134
134
log::error!("Failed to verify hCaptcha: {}", e);
135
135
136
136
return Redirect::to(&format!(
137
137
-
"/gate?handle={}&state={}&error={}",
137
137
+
"/gate/signup?handle={}&state={}&error={}",
138
138
url_encode(¶ms.handle),
139
139
url_encode(¶ms.state),
140
140
url_encode("Verification failed. Please try again.")
···
149
149
log::error!("Failed to parse hCaptcha response: {}", e);
150
150
151
151
return Redirect::to(&format!(
152
152
-
"/gate?handle={}&state={}&error={}",
152
152
+
"/gate/signup?handle={}&state={}&error={}",
153
153
url_encode(¶ms.handle),
154
154
url_encode(¶ms.state),
155
155
url_encode("Verification failed. Please try again.")
···
165
165
captcha_result.error_codes
166
166
);
167
167
return Redirect::to(&format!(
168
168
-
"/gate?handle={}&state={}&error={}",
168
168
+
"/gate/signup?handle={}&state={}&error={}",
169
169
url_encode(¶ms.handle),
170
170
url_encode(¶ms.state),
171
171
url_encode("Verification failed. Please try again.")