mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 04:37:00 +00:00
fix: Fix oauth auth code flow grant page being broken
This commit is contained in:
1 parent
bee92b58e7
commit
1ff0d8d5a4
1 file changed
+2
-2
@@ -9,7 +9,7 @@ use conduwuit_service::oauth::{
|
||||
grant::{AuthorizationCodeQuery, DeviceCodeVerifyQuery, Prompt},
|
||||
};
|
||||
use ruma::OwnedUserId;
|
||||
use serde::Deserialize;
|
||||
use serde::{de::IgnoredAny, Deserialize};
|
||||
|
||||
use crate::{
|
||||
ROUTE_PREFIX, WebError,
|
||||
@@ -46,7 +46,7 @@ async fn route_authorization_code(
|
||||
Extension(context): Extension<TemplateContext>,
|
||||
user: User<true>,
|
||||
Expect(Query(query)): Expect<Query<AuthorizationCodeQuery>>,
|
||||
PostForm(form): PostForm<()>,
|
||||
PostForm(form): PostForm<IgnoredAny>,
|
||||
) -> Result {
|
||||
let user_id = if let Some(user) = user.into_session() {
|
||||
user.user_id
|
||||
|
||||
Reference in new issue
Block a user