Skip to content

Commit 4eeb7d4

Browse files
committed
Merge remote-tracking branch 'origin/accountManagement' into accountManagement
Conflicts: Zenergy/Zenergy/Controllers/AccountController.cs Zenergy/Zenergy/Controllers/ApiControllers/membersController.cs Zenergy/Zenergy/Providers/ApplicationOAuthProvider.cs Zenergy/Zenergy/Scripts/Lib/_references.js Zenergy/Zenergy/Services/UserServices.cs Zenergy/Zenergy/Zenergy.csproj
2 parents 9ff7b04 + c437f17 commit 4eeb7d4

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

Diff for: Zenergy/Zenergy/Controllers/AccountController.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -515,4 +515,8 @@ public System.Web.Mvc.ActionResult Index()
515515
return View();
516516
}
517517
}
518-
}
518+
<<<<<<< HEAD
519+
}
520+
=======
521+
}
522+
>>>>>>> origin/accountManagement

Diff for: Zenergy/Zenergy/Controllers/ApiControllers/membersController.cs

+3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313

1414
namespace Zenergy.Controllers.ApiControllers
1515
{
16+
<<<<<<< HEAD
1617

18+
=======
19+
>>>>>>> origin/accountManagement
1720
[Authorize]
1821
public class membersController : ApiController
1922
{

Diff for: Zenergy/Zenergy/Providers/ApplicationOAuthProvider.cs

+5
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwner
5151
identity.AddClaim(new Claim("mail", context.UserName));
5252
identity.AddClaim(new Claim("role", "user"));
5353
identity.AddClaim(new Claim(ClaimTypes.Name, context.UserName));
54+
//identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.userId.ToString()));
55+
identity.AddClaim(new Claim("UserId", user.userId.ToString()));
5456

57+
<<<<<<< HEAD
5558
//identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, user.userId.ToString()));
5659
identity.AddClaim(new Claim("UserId", user.userId.ToString()));
5760

@@ -76,6 +79,8 @@ public override async Task GrantResourceOwnerCredentials(OAuthGrantResourceOwner
7679
identity.AddClaim(new Claim("UserId", user.userId.ToString()));
7780

7881

82+
=======
83+
>>>>>>> origin/accountManagement
7984
if (user.member != null)
8085
{
8186
identity.AddClaim(new Claim(ClaimTypes.Role, "Member"));

Diff for: Zenergy/Zenergy/Services/UserServices.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public async Task<user> findByMailAndPassword(string userMail, string userPass)
5353
System.Diagnostics.Debug.WriteLine(e.StackTrace);
5454
return null;
5555
}
56+
<<<<<<< HEAD
5657
}
5758

5859
public async Task<user> findByMail(string userMail)
@@ -67,12 +68,14 @@ public async Task<user> findByMail(string userMail)
6768
System.Diagnostics.Debug.WriteLine(e.StackTrace);
6869
return null;
6970
}
71+
=======
72+
>>>>>>> origin/accountManagement
7073
}
7174

7275
public async Task CreateUser(user u)
7376
{
74-
db.user.Add(u);
75-
await db.SaveChangesAsync();
77+
db.user.Add(u);
78+
await db.SaveChangesAsync();
7679
}
7780

7881
}

Diff for: Zenergy/Zenergy/Zenergy.csproj

+7
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,15 @@
302302
<Content Include="favicon.ico" />
303303
<Content Include="fonts\glyphicons-halflings-regular.svg" />
304304
<Content Include="Global.asax" />
305+
<<<<<<< HEAD
305306
<<<<<<< HEAD
306307
<Content Include="Pages\profile.html" />
307308
=======
308309
<Content Include="Scripts\Controllers\accountManagementPageController.js" />
309310
>>>>>>> adding view/controller and BE controller
311+
=======
312+
<Content Include="Scripts\Controllers\accountManagementPageController.js" />
313+
>>>>>>> origin/accountManagement
310314
<Content Include="Scripts\Controllers\homePageController.js" />
311315
<Content Include="Scripts\Controllers\loginPageController.js" />
312316
<Content Include="Scripts\Controllers\mainController.js" />
@@ -1169,7 +1173,10 @@
11691173
<Content Include="Views\Login\index.cshtml" />
11701174
<Content Include="Views\Register\index.cshtml" />
11711175
<Content Include="Views\AccountManagement\index.cshtml" />
1176+
<<<<<<< HEAD
11721177
>>>>>>> adding view/controller and BE controller
1178+
=======
1179+
>>>>>>> origin/accountManagement
11731180
</ItemGroup>
11741181
<ItemGroup>
11751182
<Folder Include="App_Data\" />

0 commit comments

Comments
 (0)