public virtual string Authenticate([FromUri] DemoAuthenticationModel authenticationModel) { if (ModelState.IsValid) { var tokenData = new JwtData { Id = authenticationModel.Id, PhoneNumber = authenticationModel.MobilePhone, IsCaptchaRequired = false, ClientProcessStep = ClientProcessStep.NA }; return("token : " + JwtService.CreateToken(tokenData)); } throw ResponseBuilderService.GenerateValidationResponse(ModelState); }
public override string Authenticate([FromUri] DemoAuthenticationModel authenticationModel) { return(base.Authenticate(authenticationModel)); }