Пример #1
0
 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;
 }
Пример #2
0
        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;
        }
Пример #3
0
 public VerificationCodeController()
 {
     verifyCodeService = new VerifyCodeService(cache, GuiGe.S200_100);
 }