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

#732 Fixed email validation #742

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 0 additions & 16 deletions Bonobo.Git.Server/Attributes/EmailAttribute.cs

This file was deleted.

1 change: 0 additions & 1 deletion Bonobo.Git.Server/Bonobo.Git.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@
<Compile Include="Data\EFTeamRepository.cs" />
<Compile Include="Data\IRepositoryRepository.cs" />
<Compile Include="Data\ITeamRepository.cs" />
<Compile Include="Attributes\EmailAttribute.cs" />
<Compile Include="Extensions\TypeExtensions.cs" />
<Compile Include="FileActionResult.cs" />
<Compile Include="Attributes\FileNameAttribute.cs" />
Expand Down
4 changes: 2 additions & 2 deletions Bonobo.Git.Server/Models/AccountModels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public class UserEditModel
public string Surname { get; set; }

[Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Required")]
[Email(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Email")]
[EmailAddress(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Email")]
[DataType(DataType.EmailAddress)]
[Display(ResourceType = typeof(Resources), Name = "Account_Edit_Email")]
public string Email { get; set; }
Expand Down Expand Up @@ -162,7 +162,7 @@ public class UserCreateModel

[Required(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Required")]
[StringLength(50, ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_StringLength")]
[Email(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Email")]
[EmailAddress(ErrorMessageResourceType = typeof(Resources), ErrorMessageResourceName = "Validation_Email")]
[DataType(DataType.EmailAddress)]
[Display(ResourceType = typeof(Resources), Name = "Account_Create_Email")]
public string Email { get; set; }
Expand Down