-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2 - If user type name with spaces he'll get error
- Loading branch information
Showing
12 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,8 @@ protected override void Seed(UserIdentityDbContext context) | |
base.Seed(context); | ||
} | ||
|
||
private string userName = "Admin"; | ||
private string password = "ChangeThisPassword1"; | ||
private string userName = "Administrator"; | ||
private string password = "Admin1"; | ||
private string email = "[email protected]"; | ||
private string firstName = "TWIN"; | ||
private string lastName= "TWIN"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
WebLedMatrix/Controllers/Authentication/Models/Roles/TypicalRoles.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace WebLedMatrix.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity; | ||
using System.Data.Entity.Migrations; | ||
using System.Linq; | ||
|
||
internal sealed class Configuration : DbMigrationsConfiguration<WebLedMatrix.Logic.Authentication.Infrastructure.UserIdentityDbContext> | ||
{ | ||
public Configuration() | ||
{ | ||
AutomaticMigrationsEnabled = true; | ||
} | ||
|
||
protected override void Seed(WebLedMatrix.Logic.Authentication.Infrastructure.UserIdentityDbContext context) | ||
{ | ||
// This method will be called after migrating to the latest version. | ||
|
||
// You can use the DbSet<T>.AddOrUpdate() helper extension method | ||
// to avoid creating duplicate seed data. E.g. | ||
// | ||
// context.People.AddOrUpdate( | ||
// p => p.FullName, | ||
// new Person { FullName = "Andrew Peters" }, | ||
// new Person { FullName = "Brice Lambson" }, | ||
// new Person { FullName = "Rowan Miller" } | ||
// ); | ||
// | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters