code/Athena0.0.1/Web/Controllers/LoginController.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Athena.bll;
using System.Configuration;
using LoginPattern;
//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:登录控制器(周庆)
//最后修改时间:2018-01-26
//修改日志:
//2017-04-11 添加此类(周庆)
//2018-01-26 添加相关返回信息处理方法(周庆)
namespace Web.Controllers
{
public class LoginController :baseController
{
//登入初始页面
public override ActionResult Index()
{
return View();
}
[HttpGet]
public ActionResult OutLogin()
{
//new LogApp().WriteDbLog(new LogEntity
//{
// F_ModuleName = "系统登录",
// F_Type = DbLogType.Exit.ToString(),
// F_Account = OperatorProvider.Provider.GetCurrent().UserCode,
// F_NickName = OperatorProvider.Provider.GetCurrent().UserName,
// F_Result = true,
// F_Description = "安全退出系统",
//});
Session.Abandon();
Session.Clear();
//OperatorProvider.Provider.RemoveCurrent();
return RedirectToAction("Index", "Login");
}
//获取验证码
[HttpGet]
public ActionResult GetAuthCode()
{
return File(new VerifyCode().GetVerifyCode(), @"image/Gif");
}
//登入事件
[HttpPost, ActionName("CheckLogin")]
public void CheckLogin()
{
string msg = string.Empty;
//检查记录登录次数
后面还有 75 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
