songjun
2024-09-05 a3302fda10ff21ed3700be462ad560163ca13f14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PalGain.Core;
using BatchService.Framework.Utility;
using sbcLabSystem.Service.Account;
using sbcLabSystem.Framework;
using Common;
 
namespace sbcLabSystem.Controllers
{
    public class AccountController : Controller
    {
        //
        // GET: /Account/
 
        public ActionResult Index()
        {
            return View();
        }
 
        public ActionResult UserRequest()
        {
 
            return View();
        }
        [AllowAnonymous]
        public ActionResult GetValidateCode()
        {
            ValidateCode vCode = new ValidateCode();
            string code = vCode.CreateValidateCode(4);
            Session["ValidateCode"] = code;
            byte[] bytes = vCode.CreateValidateGraphic(code);
            return File(bytes, @"image/jpeg");
        }
 
    }
}