Questions tagged as 'asp.net-identity'

1
answer

How to fill an EditorFor as the username of the logged in user

I have a View , where the user must fill some fields, and have a last field that I left it disable , and I would like this field to appear the user name, however how do I fill in? Model : public class CombustivelModels {...
asked by 30.11.2016 / 19:05
2
answers

Site works on localhost, but not on UolHost (permissions?)

I created a default site (from those that already come pre-encoded from visual studio 2013), using asp.net mvc technology with common authentication for individual accounts. In my localhost the site runs that it is a beauty, it registers user...
asked by 23.11.2014 / 18:24
1
answer

Use table of the Database, instead of table created when using Individual Authentication with Identity

I created an application in Asp.net MVC using Identity and I left checked the option for Visual Studio to create the authentication of individual users for me. It turns out that I just discovered that it creates a .mdf file that contains a datab...
asked by 03.10.2014 / 21:25
1
answer

ASP.NET Identity - Find user by email and password

I am using Asp.Net Identity for the first time, along with the Entity Framework, and to create a user, I make the following code: var identityUser = new IdentityUser { UserName = viewModel.Nome.Replace(" ", "."), Email = viewModel.Email...
asked by 13.02.2018 / 15:26
1
answer

Doubt in the VerifyUserTokenAsync method of Asp.Net Core Identity

Asp.Net Core Identity I have a question regarding VerifyUserTokenAsync If the user forgets the password, I'll provide a page to indicate the email and send a url that has the UserId and Token (by default): private async Task Esque...
asked by 28.02.2018 / 17:13
0
answers

Insert user via ASP.NET Identity

I'm developing an application in ASP.NET where I'm using Identity . I have some initial functions coming from an external API that are called when I am validating the Token of this API via% p> The fact is that I need it i...
asked by 31.07.2017 / 03:08
1
answer

Separate Asp.Net Context Context and Application Context

I'm creating a repository using the Entity Framework, and the need arose for my entities to communicate with the IdentityUser entity of Identity, but Identity is in a separate layer of my application layer.  Is it possible to create two contex...
asked by 16.06.2017 / 04:09
1
answer

Inheritance Mapping Type per Type Asp.Net

In my project, I have a type of inheritance that I mapped by TPT. Looking at the documents and several examples I can not identify where I'm going wrong, because the mapping seems to be correct, class definitions, everything. Problem: I have...
asked by 26.04.2017 / 17:22
1
answer

Code First Migration Relationship and Insert?

I'm using UserManager to manage users, I'm using migration and I'm having relationship problem. It turns out that I have the Cliente entity: public class Cliente : IdentityUser { [NotMapped] public string Senha...
asked by 27.01.2017 / 11:53
1
answer

Send External Login Data to Controller

I need to login through Facebook, I have the login page, which renders a @Html.Partial _LoginExternal Follow the code of the two: @using EuVotoAf.Models @model LoginViewModel @{ ViewBag.Title = "Log in"; } <div id="loginbox"...
asked by 25.01.2017 / 13:46