Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
Revert "added reset password functionality"
Browse files Browse the repository at this point in the history
This reverts commit b601ac3.
  • Loading branch information
Krasipeace committed Jul 1, 2024
1 parent b601ac3 commit 130cd5c
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
3 changes: 0 additions & 3 deletions PCHCB/PCHCB.Common/EntityValidationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@ public static class User

public const int LastNameMinLength = 2;
public const int LastNameMaxLength = 20;

public const int DisplayNameMinLength = 3;
public const int DisplayNameMaxLength = 20;
}
}
}
2 changes: 0 additions & 2 deletions PCHCB/PCHCB.Common/ErrorMessages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ public static class User
public const string LastNameErrorMessage = "The {0} must be at least {2} and at max {1} characters long.";

public const string BuilderErrorMessage = "Only user of his/her own configuration can view it!";

public const string DisplayNameErrorMessage = "The {0} must be at least {2} and at max {1} characters long.";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
namespace PCHCB.Web.ViewModels.PcConfiguration
{
using PCHCB.Web.ViewModels.Case;
using PCHCB.Web.ViewModels.Contracts;
using PCHCB.Web.ViewModels.Cooler;
using PCHCB.Web.ViewModels.Cpu;
using PCHCB.Web.ViewModels.Gpu;
using PCHCB.Web.ViewModels.Motherboard;
using PCHCB.Web.ViewModels.Psu;
using PCHCB.Web.ViewModels.Ram;
using PCHCB.Web.ViewModels.Storage;

/// <summary>
/// Assemble Pc Configuration Form Model
Expand Down Expand Up @@ -28,5 +36,21 @@ public class AssembleConfigurationFormModel : IProtectedUrlsModel
public int StorageId { get; set; }

public Guid BuilderId { get; set; }

public List<CaseDetailsViewModel> Cases { get; set; } = new List<CaseDetailsViewModel>();

public List<CpuDetailsViewModel> Cpus { get; set; } = new List<CpuDetailsViewModel>();

public List<CoolerDetailsViewModel> Coolers { get; set; } = new List<CoolerDetailsViewModel>();

public List<GpuDetailsViewModel> Gpus { get; set; } = new List<GpuDetailsViewModel>();

public List<MotherboardDetailsViewModel> Motherboards { get; set; } = new List<MotherboardDetailsViewModel>();

public List<PsuDetailsViewModel> Psus { get; set; } = new List<PsuDetailsViewModel>();

public List<RamDetailsViewModel> Rams { get; set; } = new List<RamDetailsViewModel>();

public List<StorageDetailsViewModel> Storages { get; set; } = new List<StorageDetailsViewModel>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,5 @@ public class PcConfigurationViewModel : IProtectedUrlsModel
public decimal Price { get; set; }

public DateTime CreatedOn { get; set; }

[Display(Name = "Builded By")]
public Guid BuilderId { get; set; }
}
}
4 changes: 0 additions & 4 deletions PCHCB/PCHCB.Web.ViewModels/User/RegisterFormModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@ public class RegisterFormModel
[Required]
[StringLength(LastNameMaxLength, MinimumLength = LastNameMinLength, ErrorMessage = LastNameErrorMessage)]
public string LastName { get; set; } = null!;

//[Required]
//[StringLength(DisplayNameMaxLength, MinimumLength = DisplayNameMinLength, ErrorMessage = DisplayNameErrorMessage)]
//public string DisplayName { get; set; } = null!;
}
}
4 changes: 2 additions & 2 deletions PCHCB/PCHCB.Web/Views/PcConfiguration/Assemble.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@
</div>

@section Scripts
{
{
<partial name="_ValidationScriptsPartial" />
}
}
6 changes: 0 additions & 6 deletions PCHCB/PCHCB.Web/Views/User/Register.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
<span asp-validation-for="Email" class="text-danger"></span>
</div>

@* <div class="form-floating">
<input asp-for="DisplayName" class="form-control" autocomplete="username" aria-required="true" />
<label asp-for="DisplayName"></label>
<span asp-validation-for="DisplayName" class="text-danger"></span>
</div> *@

<div class="form-floating mb-2 mt-2">
<input asp-for="FirstName" class="form-control" autocomplete="new-password" aria-required="true" />
<label asp-for="FirstName"></label>
Expand Down

0 comments on commit 130cd5c

Please sign in to comment.