fix report & comment reset pass

This commit is contained in:
Bright 2025-02-24 10:58:07 +07:00
parent 0be55a03a9
commit db9875a84b
3 changed files with 128 additions and 138 deletions

View file

@ -830,18 +830,4 @@ export class KeycloakController extends Controller {
return result;
}
@Post("user/reset-password")
async forgetPassword(
@Request() request: { user: { sub: string; preferred_username: string } },
@Body()
body: {
username: string;
},
) {
const result = await resetPassword(body.username);
if (!result) {
throw new Error("Failed. Cannot change password.");
}
return result;
}
}