Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1439)

Delta Between Two Patch Sets: Calendar.ASP.NET.MVC5/Controllers/AccountController.cs

Issue 194980043: Issue 6: Create an ASP.Net MVC Sample Base URL: https://google-api-dotnet-client.samples.googlecode.com/hg/
Left Patch Set: Addressed first round of review notes Created 9 years, 1 month ago
Right Patch Set: Addressed peleyal's comments Created 8 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Calendar.ASP.NET.MVC5/Content/bootstrap.min.css ('k') | Calendar.ASP.NET.MVC5/Controllers/CalendarController.cs » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 // This file is added automatically by the MVC 5 application template.
2 Copyright 2015 Google Inc 2 // Some unnecessary code has been removed for the purpose of this sample.
3
4 Licensed under the Apache License, Version 2.0(the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16 3
17 using System.Threading.Tasks; 4 using System.Threading.Tasks;
18 using System.Web; 5 using System.Web;
19 using System.Web.Mvc; 6 using System.Web.Mvc;
20 using Microsoft.AspNet.Identity; 7 using Microsoft.AspNet.Identity;
21 using Microsoft.AspNet.Identity.Owin; 8 using Microsoft.AspNet.Identity.Owin;
22 using Microsoft.Owin.Security; 9 using Microsoft.Owin.Security;
10
23 using Calendar.ASP.NET.MVC5.Models; 11 using Calendar.ASP.NET.MVC5.Models;
24 12
25 namespace Calendar.ASP.NET.MVC5.Controllers 13 namespace Calendar.ASP.NET.MVC5.Controllers
26 { 14 {
27 [Authorize] 15 [Authorize]
28 public class AccountController : Controller 16 public class AccountController : Controller
29 { 17 {
30 private ApplicationSignInManager _signInManager; 18 private ApplicationSignInManager _signInManager;
31 private ApplicationUserManager _userManager; 19 private ApplicationUserManager _userManager;
32 20
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 if (UserId != null) 231 if (UserId != null)
244 { 232 {
245 properties.Dictionary[XsrfKey] = UserId; 233 properties.Dictionary[XsrfKey] = UserId;
246 } 234 }
247 context.HttpContext.GetOwinContext().Authentication.Challenge(pr operties, LoginProvider); 235 context.HttpContext.GetOwinContext().Authentication.Challenge(pr operties, LoginProvider);
248 } 236 }
249 } 237 }
250 #endregion 238 #endregion
251 } 239 }
252 } 240 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b