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");
|
}
|
|
}
|
}
|