File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -815,6 +815,7 @@ pub(crate) async fn post(
815
815
} ;
816
816
maybe_user = repo. user ( ) . find_by_username ( & localpart) . await ?;
817
817
}
818
+ //:tchap: end
818
819
819
820
let Some ( user) = maybe_user else {
820
821
// user cannot be None at this stage
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ pub(crate) async fn get(
125
125
} else {
126
126
println ! ( "Missing login_hint in post_auth_action" ) ;
127
127
}
128
- //:tchap:
128
+ //:tchap: end
129
129
130
130
131
131
let content = render (
@@ -172,10 +172,10 @@ pub(crate) async fn post(
172
172
return Ok ( StatusCode :: METHOD_NOT_ALLOWED . into_response ( ) ) ;
173
173
}
174
174
175
- //:tchap
175
+ //:tchap:
176
176
//let form = cookie_jar.verify_form(&clock, form)?;
177
177
let mut form = cookie_jar. verify_form ( & clock, form) ?;
178
- //:tchap
178
+ //:tchap:
179
179
180
180
let ( csrf_token, cookie_jar) = cookie_jar. csrf_token ( & clock, & mut rng) ;
181
181
@@ -192,7 +192,7 @@ pub(crate) async fn post(
192
192
. await
193
193
. is_ok ( ) ;
194
194
195
- //:tchap
195
+ //:tchap:
196
196
//substitute values in the form
197
197
if let Some ( PostAuthAction :: ContinueAuthorizationGrant { id } ) = & query. post_auth_action
198
198
&& let Some ( login_hint) = repo
@@ -211,7 +211,7 @@ pub(crate) async fn post(
211
211
} else {
212
212
println ! ( "Missing login_hint in post_auth_action" ) ;
213
213
}
214
- //:tchap
214
+ //:tchap: end
215
215
216
216
217
217
// Validate the form
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub(crate) async fn get(
128
128
.with_csrf(csrf_token.form_value())
129
129
.with_language(locale);
130
130
*/
131
- //:tchap:
131
+ //:tchap: end
132
132
133
133
let content = templates. render_register_steps_display_name ( & ctx) ?;
134
134
@@ -176,7 +176,7 @@ pub(crate) async fn post(
176
176
. into_response ( ) ) ;
177
177
}
178
178
179
- // :tchap:
179
+ //:tchap:
180
180
let post_auth_action: Option < PostAuthAction > = registration
181
181
. post_auth_action
182
182
. clone ( )
@@ -200,7 +200,7 @@ pub(crate) async fn post(
200
200
} else {
201
201
println ! ( "Missing login_hint in post_auth_action" ) ;
202
202
}
203
- // :tchap:
203
+ //:tchap: end
204
204
205
205
let ( csrf_token, cookie_jar) = cookie_jar. csrf_token ( & clock, & mut rng) ;
206
206
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export default {
14
14
".storybook/locales.ts" ,
15
15
"tchap/vite.tchap.config.ts" ,
16
16
] ,
17
- //:tchap:
17
+ //:tchap: end
18
18
ignoreDependencies : [
19
19
// This is used by the tailwind PostCSS plugin, but not detected by knip
20
20
"postcss-nesting" ,
You can’t perform that action at this time.
0 commit comments