Skip to content

Commit c12e8af

Browse files
committed
Cleanup and pwd rules simplification
1 parent 3befe5c commit c12e8af

File tree

14 files changed

+35
-85
lines changed

14 files changed

+35
-85
lines changed

Blogifier.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docs", "docs", "{6015AFDB-9
2727
ProjectSection(SolutionItems) = preProject
2828
docs\AppSettings.md = docs\AppSettings.md
2929
docs\Build.md = docs\Build.md
30-
docs\CustomThemes.md = docs\CustomThemes.md
3130
docs\Disqus.md = docs\Disqus.md
3231
docs\Import.md = docs\Import.md
3332
docs\Notifications.md = docs\Notifications.md
3433
docs\Security.md = docs\Security.md
3534
docs\SqlServer.md = docs\SqlServer.md
35+
docs\Themes.md = docs\Themes.md
3636
docs\VideoAudio.md = docs\VideoAudio.md
3737
EndProjectSection
3838
EndProject

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Blogifier is single blog supporting multiple authors. Administrator can manage c
1717

1818
1. Clone or download source code
1919
2. Run application in Visual Studio or using your code editor
20-
3. Use admin/Admin@pass1 to log in as admininstrator
21-
4. Use demo/Demo@pass1 to log in as regular user
20+
3. Use admin/admin to log in as admininstrator
21+
4. Use demo/demo to log in as regular user
2222

2323
## Demo site
2424

docs/Security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ and publish posts and upload and manage files.
99
### Identity options
1010
Identity options defined in the `Startup.cs` and can be modified if do not fit requirements.
1111
By default, they pretty relaxed: you can use any characters in the user name and only password
12-
restriction is to be at least six characters long.
12+
restriction is to be at least four characters long.
1313

1414
```csharp
1515
services.AddIdentity<AppUser, IdentityRole>(options => {
1616
options.Password.RequireDigit = false;
17-
options.Password.RequiredLength = 6;
17+
options.Password.RequiredLength = 4;
1818
options.Password.RequireNonAlphanumeric = false;
1919
options.Password.RequireUppercase = false;
2020
options.Password.RequireLowercase = false;
File renamed without changes.

src/App/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public static void Main(string[] args)
3535
var userMgr = (UserManager<AppUser>)services.GetRequiredService(typeof(UserManager<AppUser>));
3636
if (!userMgr.Users.Any())
3737
{
38-
userMgr.CreateAsync(new AppUser { UserName = "admin", Email = "admin@us.com" }, "Admin@pass1");
39-
userMgr.CreateAsync(new AppUser { UserName = "demo", Email = "demo@us.com" }, "Demo@pass1");
38+
userMgr.CreateAsync(new AppUser { UserName = "admin", Email = "admin@us.com" }, "admin");
39+
userMgr.CreateAsync(new AppUser { UserName = "demo", Email = "demo@us.com" }, "demo");
4040
}
4141

4242
// load application settings from appsettings.json

src/App/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void ConfigureServices(IServiceCollection services)
4747

4848
services.AddIdentity<AppUser, IdentityRole>(options => {
4949
options.Password.RequireDigit = false;
50-
options.Password.RequiredLength = 6;
50+
options.Password.RequiredLength = 4;
5151
options.Password.RequireNonAlphanumeric = false;
5252
options.Password.RequireUppercase = false;
5353
options.Password.RequireLowercase = false;

src/App/app.db

0 Bytes
Binary file not shown.

src/Core/Constants.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ public class Constants
44
{
55
public static string NewestVersion = "last-version";
66
public static string UpgradeDirectory = "_upgrade";
7-
public static string DefaultAvatar = "lib/img/avatar.png";
87
}
98
}

src/Core/Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.1</TargetFramework>
5-
<Version>2.0.2.3</Version>
5+
<Version>2.0.2.4</Version>
66
</PropertyGroup>
77

88
<ItemGroup>

src/Core/Data/AppData.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public class SeedData
9898
9999
#### To login:
100100
* User: demo
101-
* Pswd: Demo@pass1";
101+
* Pswd: demo";
102102

103103
public static readonly string PostWhatIs = @"## What is Blogifier
104104
@@ -115,8 +115,8 @@ public class SeedData
115115
116116
1. Clone or download source code
117117
2. Run application in Visual Studio or using your code editor
118-
3. Use admin/Admin@pass1 to log in as admininstrator
119-
4. Use demo/Demo@pass1 to log in as user
118+
3. Use admin/admin to log in as admininstrator
119+
4. Use demo/demo to log in as user
120120
121121
## Demo site
122122
@@ -148,7 +148,7 @@ The [demo site](http://blogifier.azurewebsites.net) is a playground to check out
148148
149149
#### To login:
150150
* User: demo
151-
* Pswd: Demo@pass1";
151+
* Pswd: demo";
152152

153153
}
154154
}

0 commit comments

Comments
 (0)