public JsonResult ValidateExistingAuthCode(string code, string memberNumber) { DataAccess _da = new DataAccess(); GoogleAuthModel model = _da.GetGoogleAuthDetails(memberNumber); GoogleAuthUtil ob = new GoogleAuthUtil(_config); return(Json(ob.ValidateCode(code, model.PassCodeGoogleSecret))); }
public JsonResult ValidateCode(string code) { GoogleAuthUtil ob = new GoogleAuthUtil(_config); return(Json(ob.ValidateCode(code))); }