mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 09:06:33 +00:00
fix reset hw endpoint
This commit is contained in:
@@ -171,8 +171,8 @@ app.MapPost("/resources/get/{dataFolder?}", //Need to have POST method for secur
|
||||
}).RequireAuthorization()
|
||||
.WithOpenApi(op => new OpenApiOperation(op){ Summary = "Gets encrypted by users Password and HardwareHash resources. POST method for secure password"});
|
||||
|
||||
app.MapPut("/resources/reset-hardware",
|
||||
async (string email, IUserService userService, ICache cache, CancellationToken cancellationToken) =>
|
||||
app.MapPut("/resources/reset-hardware/{email}",
|
||||
async ([FromRoute]string email, IUserService userService, ICache cache, CancellationToken cancellationToken) =>
|
||||
await userService.UpdateHardware(email, cancellationToken: cancellationToken))
|
||||
.RequireAuthorization(apiAdminPolicy)
|
||||
.WithOpenApi(op => new OpenApiOperation(op){ Summary = "Resets hardware id in case of hardware change"});
|
||||
|
||||
Reference in New Issue
Block a user