Questions tagged as 'asp.net-identity'

0
answers

Custom Aspnet Identity and RoleManage

My application is based on using the primary key type int in Aspnet Identity as described here . The problem is when it comes to creating a user. In the original template, I added a property in the RegisterViewModel, associated the Roles in a D...
asked by 12.03.2018 / 14:38
0
answers

Do Not Login Asp.net Core Identity

The Asp.Net Core with Identity application registers the User but does not Login using SiteNoticia.Data.Migrations; using System; using System.Collections.Generic; using System.Linq; using System.Security.Claims; using System.Threading.Tasks;...
asked by 13.02.2018 / 23:32
0
answers

Associate an entity with IdentityUser

Gentlemen, I have a category class, which must be entered by registered users. My relationship idea is 1 user can have multiple categories. I have my projects separated but related to each other according to the image below I tried t...
asked by 13.02.2018 / 18:56
1
answer

Associate ApplicationUser of Identity with my class PersonPhysical

My Asp.Net MVC system uses Identity in its default form, with some simple customizations. I also have a Physical Persons table (which inherits some information from People, but I think this is not the case). I would like to associate the Appl...
asked by 01.02.2018 / 12:44
1
answer

Get the value of custom attributes in .NET CORE 2.0 aspnet-identity

I'm using Identity with aspnet core 2.0 and I needed to add the nuCPF attribute in the ApplicationUser table. In the controller I am getting the user data as follows: [Controller: ClientController ) public ClienteController(UserMan...
asked by 22.01.2018 / 12:45
0
answers

Error: The entity types 'CustomRole' and 'AspNetRoles' can not share table 'AspNetRoles'

I've created the entire Identity structure to work with INT instead of GUID. Using DataBase First and included in the database, with a create script, the Identity tables modified (just changed AspNetUsers). but every time I call: userManage...
asked by 22.11.2017 / 23:25
1
answer

Variable error in identity

Good afternoon guys, I'm supporting a project of my company, which is using identity config. In this I added a deleted call variable in my database and gave an update-database and updated the database with this new variable, but when I start...
asked by 09.10.2017 / 21:37
1
answer

How to retrieve parameter from a Controller

After the user logs in, two parameters are passed to Controller Home : case SignInStatus.Success: { //recupera as informações do usuario que corresponda ao usuario e password var user = await UserManager.FindAsync(model.Usuário, mo...
asked by 11.07.2017 / 22:13
0
answers

The specified string is not in the format required for an e-mail address

I'm doing a routine and I'm not succeeding I'm having this error and in web.config I left it like this <system.net > <mailSettings> <smtp from="[email protected]"> <network host="smtp.gmail.com" password="******" port=...
asked by 25.05.2017 / 20:52
1
answer

Asp.net Identity: Registry Error

I created an ASP.NET MVC project with "Individual User Accounts" authentication and then I ran it and tried to make a record, however the following exception was thrown at line 155: Linha 154: var user = new ApplicationUser...
asked by 08.10.2016 / 20:06