mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 12:05:53 +00:00
fix up oauth flow routes
This commit is contained in:
@@ -51,6 +51,7 @@ pub fn config(cfg: &mut ServiceConfig) {
|
||||
.service(init)
|
||||
.service(auth_callback)
|
||||
.service(delete_auth_provider)
|
||||
.service(create_oauth_account)
|
||||
.service(create_account_with_password)
|
||||
.service(login_password)
|
||||
.service(login_2fa)
|
||||
@@ -1396,7 +1397,7 @@ struct NewOAuthAccount {
|
||||
pub sign_up_newsletter: bool,
|
||||
}
|
||||
|
||||
#[get("/create/oauth")]
|
||||
#[post("/create/oauth")]
|
||||
async fn create_oauth_account(
|
||||
req: HttpRequest,
|
||||
db: Data<PgPool>,
|
||||
|
||||
Reference in New Issue
Block a user