Skip to content

Commit c24fa4e

Browse files
committed
fix :tchap: tags
1 parent f81a0d2 commit c24fa4e

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

crates/handlers/src/upstream_oauth2/link.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ pub(crate) async fn post(
815815
};
816816
maybe_user = repo.user().find_by_username(&localpart).await?;
817817
}
818+
//:tchap: end
818819

819820
let Some(user) = maybe_user else {
820821
// user cannot be None at this stage

crates/handlers/src/views/register/password.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub(crate) async fn get(
125125
}else {
126126
println!("Missing login_hint in post_auth_action");
127127
}
128-
//:tchap:
128+
//:tchap: end
129129

130130

131131
let content = render(
@@ -172,10 +172,10 @@ pub(crate) async fn post(
172172
return Ok(StatusCode::METHOD_NOT_ALLOWED.into_response());
173173
}
174174

175-
//:tchap
175+
//:tchap:
176176
//let form = cookie_jar.verify_form(&clock, form)?;
177177
let mut form = cookie_jar.verify_form(&clock, form)?;
178-
//:tchap
178+
//:tchap:
179179

180180
let (csrf_token, cookie_jar) = cookie_jar.csrf_token(&clock, &mut rng);
181181

@@ -192,7 +192,7 @@ pub(crate) async fn post(
192192
.await
193193
.is_ok();
194194

195-
//:tchap
195+
//:tchap:
196196
//substitute values in the form
197197
if let Some(PostAuthAction::ContinueAuthorizationGrant { id }) = &query.post_auth_action
198198
&& let Some(login_hint) = repo
@@ -211,7 +211,7 @@ pub(crate) async fn post(
211211
} else {
212212
println!("Missing login_hint in post_auth_action");
213213
}
214-
//:tchap
214+
//:tchap: end
215215

216216

217217
// Validate the form

crates/handlers/src/views/register/steps/display_name.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub(crate) async fn get(
128128
.with_csrf(csrf_token.form_value())
129129
.with_language(locale);
130130
*/
131-
//:tchap:
131+
//:tchap: end
132132

133133
let content = templates.render_register_steps_display_name(&ctx)?;
134134

@@ -176,7 +176,7 @@ pub(crate) async fn post(
176176
.into_response());
177177
}
178178

179-
// :tchap:
179+
//:tchap:
180180
let post_auth_action: Option<PostAuthAction> = registration
181181
.post_auth_action
182182
.clone()
@@ -200,7 +200,7 @@ pub(crate) async fn post(
200200
} else {
201201
println!("Missing login_hint in post_auth_action");
202202
}
203-
// :tchap:
203+
//:tchap: end
204204

205205
let (csrf_token, cookie_jar) = cookie_jar.csrf_token(&clock, &mut rng);
206206

frontend/knip.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
".storybook/locales.ts",
1515
"tchap/vite.tchap.config.ts",
1616
],
17-
//:tchap:
17+
//:tchap: end
1818
ignoreDependencies: [
1919
// This is used by the tailwind PostCSS plugin, but not detected by knip
2020
"postcss-nesting",

0 commit comments

Comments
 (0)