Skip to content

Commit

Permalink
removed unnecessary login options.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogl committed Dec 10, 2018
1 parent d0d709e commit 0f93fb8
Show file tree
Hide file tree
Showing 18 changed files with 6 additions and 609 deletions.
4 changes: 2 additions & 2 deletions server/Server/.vs/config/applicationhost.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!--
IIS configuration sections.
Expand Down Expand Up @@ -156,7 +156,7 @@
</site>
<site name="Server" id="2">
<application path="/" applicationPool="Clr4IntegratedAppPool">
<virtualDirectory path="/" physicalPath="C:\Users\Pawel\Desktop\server\Server\Server" />
<virtualDirectory path="/" physicalPath="C:\Users\Pawel\Desktop\OBD-II\server\Server\Server" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:58192:localhost" />
Expand Down
151 changes: 0 additions & 151 deletions server/Server/Server/Controllers/AccountController.cs

This file was deleted.

2 changes: 1 addition & 1 deletion server/Server/Server/Data/ApplicationDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Server.Data
{
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
public class ApplicationDbContext : DbContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
: base(options)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,165 +20,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.HasAnnotation("ProductVersion", "2.0.1-rtm-125")
.HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();

b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();

b.Property<string>("Name")
.HasMaxLength(256);

b.Property<string>("NormalizedName")
.HasMaxLength(256);

b.HasKey("Id");

b.HasIndex("NormalizedName")
.IsUnique()
.HasName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");

b.ToTable("AspNetRoles");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();

b.Property<string>("ClaimType");

b.Property<string>("ClaimValue");

b.Property<string>("RoleId")
.IsRequired();

b.HasKey("Id");

b.HasIndex("RoleId");

b.ToTable("AspNetRoleClaims");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();

b.Property<string>("ClaimType");

b.Property<string>("ClaimValue");

b.Property<string>("UserId")
.IsRequired();

b.HasKey("Id");

b.HasIndex("UserId");

b.ToTable("AspNetUserClaims");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.Property<string>("LoginProvider");

b.Property<string>("ProviderKey");

b.Property<string>("ProviderDisplayName");

b.Property<string>("UserId")
.IsRequired();

b.HasKey("LoginProvider", "ProviderKey");

b.HasIndex("UserId");

b.ToTable("AspNetUserLogins");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.Property<string>("UserId");

b.Property<string>("RoleId");

b.HasKey("UserId", "RoleId");

b.HasIndex("RoleId");

b.ToTable("AspNetUserRoles");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.Property<string>("UserId");

b.Property<string>("LoginProvider");

b.Property<string>("Name");

b.Property<string>("Value");

b.HasKey("UserId", "LoginProvider", "Name");

b.ToTable("AspNetUserTokens");
});

modelBuilder.Entity("Server.Models.ApplicationUser", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();

b.Property<int>("AccessFailedCount");

b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();

b.Property<string>("Email")
.HasMaxLength(256);

b.Property<bool>("EmailConfirmed");

b.Property<bool>("LockoutEnabled");

b.Property<DateTimeOffset?>("LockoutEnd");

b.Property<string>("NormalizedEmail")
.HasMaxLength(256);

b.Property<string>("NormalizedUserName")
.HasMaxLength(256);

b.Property<string>("PasswordHash");

b.Property<string>("PhoneNumber");

b.Property<bool>("PhoneNumberConfirmed");

b.Property<string>("SecurityStamp");

b.Property<bool>("TwoFactorEnabled");

b.Property<string>("UserName")
.HasMaxLength(256);

b.HasKey("Id");

b.HasIndex("NormalizedEmail")
.HasName("EmailIndex");

b.HasIndex("NormalizedUserName")
.IsUnique()
.HasName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");

b.ToTable("AspNetUsers");
});

modelBuilder.Entity("Server.Models.CarRecord", b =>
{
b.Property<int>("Id")
Expand All @@ -200,51 +41,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)

b.ToTable("CarRecords");
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
{
b.HasOne("Server.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
{
b.HasOne("Server.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);

b.HasOne("Server.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});

modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
{
b.HasOne("Server.Models.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
#pragma warning restore 612, 618
}
}
Expand Down
Loading

0 comments on commit 0f93fb8

Please sign in to comment.