mirror of
				https://github.com/dani-garcia/vaultwarden.git
				synced 2025-10-27 16:30:02 +02:00 
			
		
		
		
	Prefix unused params with underscore
This commit is contained in:
		| @@ -520,8 +520,9 @@ struct AcceptData { | ||||
|     Token: String, | ||||
| } | ||||
|  | ||||
| #[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 { | ||||
| #[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 { | ||||
| // 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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user