Error Captcha in Angular

Hi,


In 9.2. I created a custom API CCC.CompositionAPI.Server.Plugin.dll according to the documentation  and I used FixedCredentials in the web.config file to query
database object.
Now, I need to be able to use a captcha but an error ocurred always.

 An error occurred while processing the request: POST https://XXXXXXX/ApiServer/passwordreset/passwordquestions/account System.Exception: An error occurred while processing the request: POST https://XXXXXX/ApiServer/passwordreset/passwordquestions/account ---> VI.Base.ViException: El código introducido era incorrecto.
   en QER.CompositionApi.Password.QER_PasswordReset_Auth.<>c__DisplayClass0_0.<<Build>b__1>d.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en QBM.CompositionApi.Definition.RouteExtensionMethods.<>c__DisplayClass5_0`2.<<Handle>b__0>d.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en QBM.CompositionApi.ApiManager.JsonResponseBuilder.InnerJsonResponseBuilder.<WriteAsync>d__5.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en QBM.CompositionApi.Compression.CompressionResponseBuilder.CompressedResponse.<WriteAsync>d__4.MoveNext()
--- Fin del seguimiento de la pila de la ubicación anterior donde se produjo la excepción ---
   en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   en QBM.CompositionApi.ApiManager.MethodRequestHandler.<SendAsync>d__16.MoveNext()
   --- Fin del seguimiento de la pila de la excepción interna ---

Any idea?

Parents
  • I need to check that the code introduced by the user is the same that captcha.
    In Password Reset Portal, the captcha is validated by method API passwordreset_passwordquestions_account_post,
    but when I'm ussing the same method in my component, but I'm getting the error. My custom method is:


    async CompruebaCaptcha(noResetMessage?: boolean): Promise<void> {
    try {
    this.resCodigo=true;
    const resp = this.captchaSvc.Response;
    this.captchaSvc.Response = "";
    this.pqa =await this.qerApiService.v2Client.passwordreset_passwordquestions_account_post({
    AccountName: this.Login,
    Code: resp
    });

    }
    ........

    Thanks.

    Laura.

Reply
  • I need to check that the code introduced by the user is the same that captcha.
    In Password Reset Portal, the captcha is validated by method API passwordreset_passwordquestions_account_post,
    but when I'm ussing the same method in my component, but I'm getting the error. My custom method is:


    async CompruebaCaptcha(noResetMessage?: boolean): Promise<void> {
    try {
    this.resCodigo=true;
    const resp = this.captchaSvc.Response;
    this.captchaSvc.Response = "";
    this.pqa =await this.qerApiService.v2Client.passwordreset_passwordquestions_account_post({
    AccountName: this.Login,
    Code: resp
    });

    }
    ........

    Thanks.

    Laura.

Children
No Data