mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
21 lines
372 B
C#
21 lines
372 B
C#
using System.Web.Mvc;
|
|
using OpenAuth.App;
|
|
|
|
namespace OpenAuth.Web.Controllers
|
|
{
|
|
public class HomeController : Controller
|
|
{
|
|
//
|
|
// GET: /Home/
|
|
|
|
public ActionResult Index()
|
|
{
|
|
if(LoginCacheApp.GetLogin() == null)
|
|
return RedirectToAction("Login", "Account");
|
|
return View();
|
|
}
|
|
|
|
|
|
}
|
|
}
|