-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from periface/AbpCinotamDev
Abp cinotam dev
- Loading branch information
Showing
37 changed files
with
763 additions
and
88 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
29 changes: 29 additions & 0 deletions
29
...oduleZero.EntityFramework/Migrations/201611171642024_UserShouldChangePassword.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
Cinotam.AbpModuleZero.EntityFramework/Migrations/201611171642024_UserShouldChangePassword.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
namespace Cinotam.AbpModuleZero.Migrations | ||
{ | ||
using System; | ||
using System.Data.Entity.Migrations; | ||
|
||
public partial class UserShouldChangePassword : DbMigration | ||
{ | ||
public override void Up() | ||
{ | ||
AddColumn("dbo.AbpUsers", "ShouldChangePasswordOnLogin", c => c.Boolean(nullable: false)); | ||
} | ||
|
||
public override void Down() | ||
{ | ||
DropColumn("dbo.AbpUsers", "ShouldChangePasswordOnLogin"); | ||
} | ||
} | ||
} |
126 changes: 126 additions & 0 deletions
126
...am.AbpModuleZero.EntityFramework/Migrations/201611171642024_UserShouldChangePassword.resx
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
using System.Web; | ||
|
||
namespace Cinotam.AbpModuleZero.Tools.Extensions | ||
{ | ||
public static class ServerHelpers | ||
{ | ||
public static string GetServerUrl(HttpRequestBase request) | ||
{ | ||
if (request.Url == null) return string.Empty; | ||
var strPathAndQuery = request.Url.PathAndQuery; | ||
var strUrl = request.Url.AbsoluteUri.Replace(strPathAndQuery, "/"); | ||
strUrl = strUrl.Remove(strUrl.Length - 1); | ||
return strUrl; | ||
} | ||
} | ||
} |
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
12 changes: 12 additions & 0 deletions
12
Cinotam.AbpModuleZero.Web/Areas/SysAdmin/Views/Layout/ShouldChangePasswordMessage.cshtml
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,12 @@ | ||
@model bool | ||
@{ | ||
Layout = null; | ||
} | ||
|
||
|
||
@if (Model) | ||
{ | ||
<div class="alert alert-info"> | ||
<a data-modal href="@Url.Action("ChangePassword","Users")">@L("ShouldChangePassword")</a> | ||
</div> | ||
} |
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
Oops, something went wrong.