We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
json!
1 parent 611c5db commit 6438e7bCopy full SHA for 6438e7b
src/controllers/user/session.rs
@@ -36,15 +36,7 @@ pub fn begin(req: &mut dyn RequestExt) -> EndpointResult {
36
req.session_mut()
37
.insert("github_oauth_state".to_string(), state.clone());
38
39
- #[derive(Serialize)]
40
- struct R {
41
- url: String,
42
- state: String,
43
- }
44
- Ok(req.json(&R {
45
- url: url.to_string(),
46
- state,
47
- }))
+ Ok(req.json(&json!({ "url": url.to_string(), "state": state })))
48
}
49
50
/// Handles the `GET /api/private/session/authorize` route.
0 commit comments