markus / MarkusLogview / MARKUS_LOGVIEW / Controllers / UserAuthController.cs @ c854511f
이력 | 보기 | 이력해설 | 다운로드 (634 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Web; |
5 |
using System.Web.Mvc; |
6 |
|
7 |
namespace MARKUS_LOGVIEW.Controllers |
8 |
{ |
9 |
public class UserAuthController : Controller |
10 |
{ |
11 |
// GET: UserAuth |
12 |
public ActionResult Index(string accessToken , string role) |
13 |
{ |
14 |
|
15 |
Console.WriteLine(accessToken); |
16 |
Session["accessToken"] = accessToken; |
17 |
Session["Role"] = role; |
18 |
return Redirect("/Dashboard/Index"); |
19 |
|
20 |
} |
21 |
|
22 |
public ActionResult LogOff() { |
23 |
|
24 |
Session.Abandon(); |
25 |
return Redirect("/Login/Index"); |
26 |
|
27 |
} |
28 |
} |
29 |
} |