UserControllerCE excerpt
File: /C:/Users/moabd/OneDrive/Documents/New project/appsmith-src/app/server/appsmith-server/src/main/java/com/appsmith/server/controllers/ce/UserControllerCE.java

88:     * @param originHeader    The Origin header in the request. This is a mandatory parameter.
89:     */
90:    @JsonView(Views.Public.class)
91:    @PostMapping("/forgotPassword")
92:    public Mono<ResponseDTO<Boolean>> forgotPasswordRequest(
93:            @RequestBody ResetUserPasswordDTO userPasswordDTO, @RequestHeader("Origin") String originHeader) {
94:        userPasswordDTO.setBaseUrl(originHeader);
95:        // We shouldn't leak information on whether this operation was successful or not to the client. This can enable
96:        // username scraping, where the response of this API can prove whether an email has an account or not.
97:        return service.forgotPasswordTokenGenerate(userPasswordDTO)

188:    @JsonView(Views.Public.class)
189:    @PostMapping("/resendEmailVerification")
190:    public Mono<ResponseDTO<Boolean>> resendEmailVerification(
191:            @RequestBody ResendEmailVerificationDTO resendEmailVerificationDTO,
192:            @RequestHeader("Origin") String originHeader) {
193:        resendEmailVerificationDTO.setBaseUrl(originHeader);
194:        return service.resendEmailVerification(resendEmailVerificationDTO, null)
195:                .thenReturn(new ResponseDTO<>(HttpStatus.OK, true));
