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.
1 parent ca0fb8a commit a99b957Copy full SHA for a99b957
src/controllers/user/session.rs
@@ -91,7 +91,7 @@ pub async fn authorize(
91
// Make sure that the state we just got matches the session state that we
92
// should have issued earlier.
93
let session_state = session.remove("github_oauth_state").map(CsrfToken::new);
94
- if !session_state.is_some_and(|state| query.state.secret() == state.secret()) {
+ if session_state.is_none_or(|state| query.state.secret() != state.secret()) {
95
return Err(bad_request("invalid state parameter"));
96
}
97
0 commit comments