Questions tagged [usermanager]

122 questions
0
votes
1 answer

An entity object cannot be referenced by multiple instances of IEntityChangeTracker. Wi

namespace BoatShop.Controllers { public class ManagerController : Controller { ApplicationDbContext dbContext; public ManagerController() { dbContext = new ApplicationDbContext(); } public…
Huddog
  • 3
  • 3
0
votes
0 answers

Create Users and Roles in ASP.NET 6 & Entity Framework 7

I need to create users and roles at the first startup of my web application. For that, I write my code into the Configure() function in Startup.cs. When I run my application, I get this error: An exception of type 'System.AggregateException'…
Y.Berthoud
  • 75
  • 8
0
votes
1 answer

Seed identity user table with changed id column?

I have changed the AspNetUser (identity) tabe to only user with the following code. // Change the name of the table to be Users instead of AspNetUsers modelBuilder.Entity() .ToTable("Users").Property(p =>…
Anders
  • 375
  • 2
  • 5
  • 18
0
votes
1 answer

ASP MVC5 Identity 2.0 Back end and Front End login

I'm developping a project in which I have a backoffice area (admin area), to configure the system, and a frontoffice area, for the typical user to do his business. That said, the application needs to have a Backoffice Login and another Frontoffice…
0
votes
1 answer

Sitecore user manager showing wrong timestamp

I have been having a weird issue on a Sitecore site using Sitecore.NET 6.6.0 (rev. 140410) and it happens only on the production server! When you open Security -> User Manager, select a user and then click Edit, the Information tab shows all…
Shirlz
  • 837
  • 2
  • 11
  • 18
0
votes
1 answer

OWIN password hash manual comparison from JavaScript

I need to use an existing ASP.NET OWIN database with Auth0. A problem that I've encountered is that I need to write a function in JavaScript (for the Auth0 Action Scripts) that takes a plaintext password, hashes it and compares that hash to an…
faso
  • 679
  • 7
  • 25
0
votes
1 answer

Asp.net MVC UserManager Update

I have tried to update user data in database, I am taking value from view and I assign these data to current user.Yet, I am taking an error in that line when I update user's data var result = await UserManager.UpdateAsync(userAccount);.It is written…
Ünal Öztürk
  • 193
  • 2
  • 3
  • 12
0
votes
1 answer

ASP.NET UserManager.CreateAsync Won't Add User on Live Host

The code to register a user works locally against the production DB, but for some reason, on the remote host, the user isn't added and the Register view is being returned (the delivered Register view, not the one I'm using). It doesn't appear that…
jallen
  • 602
  • 12
  • 32
0
votes
1 answer

What is the best practice to get user data in silex?

I have started a project with silex… I did the authentication and everything works fine. But now, I want to get some of my user's data and the User class I use in my custom UserProvider (from this example Silex doc - Defining a custom User Provider)…
Ophiuchus
  • 515
  • 7
  • 17
0
votes
0 answers

Usermanager missing methods in MVC 5 project?

I'm having a problem where various methods aren't working in the usermanager. I tried clearing my Resharper cache and even turning off resharper completely, but the error msg is the same even without resharper running. It insists that these methods…
ObedMarsh
  • 433
  • 4
  • 19
0
votes
1 answer

How to get a list of users for the current device, even before Lollipop?

Background Since API 17 (Jelly Bean), it's possible for Android users to have multiple-users using the same device. In the beginning it was only for tablets, but on Lollipop (API 21) it's available for smartphones too. I'm trying to check out which…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
0
votes
1 answer

How can I change UserManager logic so that user must exist in database before they register

I am customizing the MVC5 registration process so that when users are registering they must enter two custom fields 'MyNewField1' and 'MyNewField2' which will be then checked against the user context to ensure if they exist in which case the…
Jay
  • 3,012
  • 14
  • 48
  • 99
0
votes
1 answer

symfony2 : sonata userbundle + fos userbundle + mongodb => error "sonata.user.mongodb.user_manager" does not exist

I'm trying to use Sonata/UserBundle with mongodb but I'm facing an issue. I've got an ugly error: The service definition "sonata.user.mongodb.user_manager" does not exist. Here is the concerned configuration part : # in…
0
votes
3 answers

Save changes in database controller class asp.net mvc5 identity

Visual Studio 2013, ASP.NEt MVC 5 Identity Please someone help me in how to save the information in the database through controller. Let me explain...I want the following to happen: The user when logged is able update his Education information.…
0
votes
1 answer

Getting the ApplicationUser object in a controller

I am writing a C# MVC5 internet application and am having some trouble getting the ApplicationUser object in a controller that I have created. Here is my code: var userManager = new UserManager(new UserStore(new…
Simon
  • 7,991
  • 21
  • 83
  • 163
1 2 3
8
9