From 99256b9b3a53831367c0616ce834aeb65f53cbd2 Mon Sep 17 00:00:00 2001 From: Nick Fox Date: Thu, 20 Dec 2018 21:37:03 -0500 Subject: [PATCH] Prefix unused params with underscore --- src/api/core/organizations.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/core/organizations.rs b/src/api/core/organizations.rs index 7110e561..59bfcedb 100644 --- a/src/api/core/organizations.rs +++ b/src/api/core/organizations.rs @@ -520,8 +520,9 @@ struct AcceptData { Token: String, } -#[post("/organizations//users//accept", data = "")] -fn accept_invite(org_id: String, org_user_id: String, data: JsonUpcase, conn: DbConn) -> EmptyResult { +#[post("/organizations/<_org_id>/users/<_org_user_id>/accept", data = "")] +fn accept_invite(_org_id: String, _org_user_id: String, data: JsonUpcase, conn: DbConn) -> EmptyResult { +// The web-vault passes org_id and org_user_id in the URL, but we are just reading them from the JWT instead let data: AcceptData = data.into_inner().data; let token = &data.Token; let claims: InviteJWTClaims = match decode_invite_jwt(&token) {