Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/minor updates #42

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions SemanticBackup/Pages/Account/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public async Task<IActionResult> OnPostAsync()
Status = validationErrors;
return Page();
}
else if (!string.IsNullOrEmpty(UserAccountRequest.NewPassword) && UserAccountRequest.NewPassword.Length < 4)
{
Status = "Password must be at list 4 characters in length";
return Page();
}
//update details
existingUserInfo.FullName = UserAccountRequest.FullName;
existingUserInfo.EmailAddress = UserAccountRequest.EmailAddress;
Expand Down
6 changes: 3 additions & 3 deletions SemanticBackup/Pages/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,16 @@
<!--End of page content-->

</div>
<footer class="footer tva-only-display">
<footer class="footer">
<div>
<div class="float-left">
Copyright &copy; Crudsoft Technologies
Copyright &copy; Semantic Backup
<script>
document.write(new Date().getFullYear())
</script>
</div>
<div class="float-right">
<a style="margin-left:9px" href="mailto:support@crudsofttechnologies.com"> Help </a>
<a style="margin-left:9px" href="https://github.com/swagfin/semanticbackup">@(Program.AppVersion)</a>
</div>
</div>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions SemanticBackup/Pages/Shared/_LayoutNoDirectory.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
<!--End of page content-->

</div>
<footer class="footer tva-only-display">
<footer class="footer">
<div>
<div class="float-left">
Copyright &copy; Crudsoft Technologies
Copyright &copy; Semantic Backup
<script>
document.write(new Date().getFullYear())
</script>
</div>
<div class="float-right">
<a href="mailto:support@crudsofttechnologies.com"> Help </a>
<a style="margin-left:9px" href="https://github.com/swagfin/semanticbackup">@(Program.AppVersion)</a>
</div>
</div>
</footer>
Expand Down
6 changes: 3 additions & 3 deletions SemanticBackup/Pages/Shared/_LayoutNotLoggedIn.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@

</div>
</div>
<footer class="footer tva-only-display">
<footer class="footer">
<div>
<div class="float-left">
Copyright &copy; Crudsoft Technologies
Copyright &copy; Semantic Backup
<script>
document.write(new Date().getFullYear())
</script>
</div>
<div class="float-right">
<a style="margin-left:9px" href="mailto:support@crudsofttechnologies.com"> Help </a>
<a style="margin-left:9px" href="https://github.com/swagfin/semanticbackup">@(Program.AppVersion)</a>
</div>
</div>
</footer>
Expand Down
13 changes: 13 additions & 0 deletions SemanticBackup/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.Extensions.Hosting;
using System;
using System.IO;
using System.Reflection;

namespace SemanticBackup
{
Expand All @@ -24,5 +25,17 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
.Build());
webBuilder.UseStartup<Startup>();
});

public static string AppVersion
{
get
{
#if DEBUG
return string.Format("v.{0} (Developer Edition)", Assembly.GetExecutingAssembly().GetName().Version.ToString());
#else
return string.Format("v.{0}", Assembly.GetExecutingAssembly().GetName().Version.ToString());
#endif
}
}
}
}