public LoginController(VerifyCodeService verifyCodeService, LogService logger, UserService userApp, RepoService <UserOrganizeEntity> userOrganizeService, RepoService <RoleEntity> roleService) { this.verifyCodeService = verifyCodeService; this.logger = logger; this.userService = userApp; this.userOrganizeService = userOrganizeService; this.roleService = roleService; }
public void ProcessRequest(HttpContext context) { string para = context.Request.QueryString["verifyType"]; string code = VerifyCodeUtility.CreateVerifyCode(5); VerifyCodeService v = new VerifyCodeService() { Length = 5, FontSize = 15, }; v.CreateImageOnPage(code, context); context.Session[para] = code; }
public VerificationCodeController() { verifyCodeService = new VerifyCodeService(cache, GuiGe.S200_100); }