1
0
Fork 0

Prefix unused params with underscore

Dieser Commit ist enthalten in:
Nick Fox 2018-12-20 21:37:03 -05:00
Ursprung 26bf7bc12f
Commit 99256b9b3a
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 82719985805A7CA8

Datei anzeigen

@ -520,8 +520,9 @@ struct AcceptData {
Token: String, Token: String,
} }
#[post("/organizations/<org_id>/users/<org_user_id>/accept", data = "<data>")] #[post("/organizations/<_org_id>/users/<_org_user_id>/accept", data = "<data>")]
fn accept_invite(org_id: String, org_user_id: String, data: JsonUpcase<AcceptData>, conn: DbConn) -> EmptyResult { fn accept_invite(_org_id: String, _org_user_id: String, data: JsonUpcase<AcceptData>, 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 data: AcceptData = data.into_inner().data;
let token = &data.Token; let token = &data.Token;
let claims: InviteJWTClaims = match decode_invite_jwt(&token) { let claims: InviteJWTClaims = match decode_invite_jwt(&token) {