Questions tagged [usermanager]

122 questions
1
vote
0 answers

Mikrotik Usermanager: How to upload hotspot login names in bulk

We have a Mikrotik Router that also does hotspot. Usermanager is installed on this router too. I want to upload/add users in bulk? What I have tried is generate the commands needed to create the user like below: /tool user-manager user add…
Damilola Olowookere
  • 2,253
  • 2
  • 23
  • 33
1
vote
1 answer

Microsoft Identity - removing user from role, but user still has access untill logout

ApplicationDbContext _context = new ApplicationDbContext(); UserManager _userManager = new UserManager(new UserStore(_context)); I remove a user from a role by the…
1
vote
2 answers

How can I access to usermanager database and edit that remotly?

I need to create user account in mikrotik usermanager with my program. How can I access to usermanager database and edit that remotly?
MohammadG
  • 11
  • 1
  • 2
1
vote
1 answer

UserManager.FindAsync to use custom Userstore's FindByIdAsync method instead of FindByNameAsync

I'm using Identity Framework. When I login to my app, the appUser retrieves the UserManager as follow: Patient patient = await UserManager.FindAsync(model.Id, model.Password); As I understand from debugging, UserManager.FindAsync uses the…
Mikou
  • 579
  • 1
  • 8
  • 17
1
vote
3 answers

How can you set security so that a user can only see/edit their items in Sitecore?

Is there any way in Sitecore that I can create a role/user that only can view and edit their own created items? If not, how can I make this possible?
1
vote
0 answers

Check if user has already sent data to server?

I'm developing an app which will send data to a server about exam results which have been taken by the user, what would be the best solution at the server side to check if the user has already sent it's results to the server. I was thinking of a…
Mehrdad
  • 21
  • 4
1
vote
1 answer

How to correct exception when registering user entity framework

I am trying to add roles to my default mvc6 project. I am getting a exception in my register.cshtml @model TransparentEnergy.Models.RegisterViewModel
texas697
  • 5,609
  • 16
  • 65
  • 131
1
vote
0 answers

MVC 5 UserManager.FindAsync throwing error when deployed on azure

I have an ASP.NET MVC 5 website that connects to a remote sql database. The website works fine when it's running from the visual studio iis express. However, when i deploy the website on azurewebsites and attach the debugger on the login function, i…
1
vote
1 answer

ASP IdentityUser ApplicationUser - How to register multiple times

I have a database setup with the AspNetUsers table, and I am using the default code provided in a .NET solution for registration, login, password reset and so on. The database is to be run across multiple websites, so I need to account for the…
Mike Upjohn
  • 1,251
  • 2
  • 16
  • 38
1
vote
0 answers

Why FOSUserBundle has two UserManager Classes?

I went a little bit into the FOSUserBundle and recognized that this Bundle has one UserManager in the directory Model and another one in the directory Doctrine. Is there someone, who can tell me the reason for this? I only want to know it for…
Slowwie
  • 1,146
  • 2
  • 20
  • 36
1
vote
1 answer

Get password from a user with UserManager

I'm making a website with MVC5 ASP.NET. I'm using Identity framework 2.0 implement class with properties such as passwordhash, username, email, emailconfirmed and so on. I'm using userManager.ChangePassword(user.Id, Oldpassword, Newpassword);, but…
Loc Dai Le
  • 1,661
  • 4
  • 35
  • 70
1
vote
1 answer

Can't generate password reset token in MVC 5 project?

I'm having a weird issue. At the moment I'm trying to make a "forgot password" method, so users can get a reset mail when they forget their password. The strange thing is I can't use various methods in the usermanager, which normally work in all…
ObedMarsh
  • 433
  • 4
  • 19
1
vote
1 answer

ASP.NET Identity v2.0 IdentityUser properties missing

I've been using ASP.NET identity 1.0 in my previous application and by following simple tutorials like this did manage to implement custom properties into my user class: public class CustomUser : IdentityUser { public string ContactName { get;…
Bartosz
  • 4,542
  • 11
  • 43
  • 69
1
vote
2 answers

Sitecore Edit User exception in User Manager

I am trying to figure out what might be wrong. Basically, I am not able to edit any user accounts. Once I click Edit in User Manager I get the attached exception. Any advise would be much appreciated. Sitecore version is 6.6.0 (rev 130214) here…
Igor
  • 115
  • 1
  • 2
  • 10
0
votes
0 answers

Usermanager, invalid token

I have this method: public async Task Handle(GenerateRecoveryLinkQuery request, CancellationToken cancellationToken){ var user = await _userManager.FindByNameAsync(request.Username); if (user == null) …
birsanzhar
  • 11
  • 4
1 2 3
8 9