* InputUserName.cs:

* WebControls.csproj:
* Estimate.aspx: UserName input control

* IValueProvider.cs:
* TemplateException.cs:
* ResultPages.cs: code cleanning

* WorkFlowController.cs: Admin now can register new users

* LocalizedText.resx:
* LocalizedText.Designer.cs: new registration messages

* RegisterModel.cs: The registration message contains the user
  validation decision
This commit is contained in:
Paul Schneider 2015-04-02 23:38:42 +02:00
commit cce43b9daf
10 changed files with 228 additions and 6 deletions

View file

@ -178,6 +178,12 @@ namespace Yavsc.Model {
}
}
public static string DuplicateUserName {
get {
return ResourceManager.GetString("DuplicateUserName", resourceCulture);
}
}
public static string Tex_version {
get {
return ResourceManager.GetString("Tex_version", resourceCulture);
@ -208,6 +214,12 @@ namespace Yavsc.Model {
}
}
public static string DuplicateEmail {
get {
return ResourceManager.GetString("DuplicateEmail", resourceCulture);
}
}
public static string Product_reference {
get {
return ResourceManager.GetString("Product_reference", resourceCulture);

View file

@ -47,4 +47,6 @@
<data name="role_created"><value>role created</value></data>
<data name="Item_added_to_basket"><value>Item added to basket</value></data>
<data name="Estimate_not_found"><value>Estimate not found</value></data>
<data name="DuplicateEmail"><value>This email adress is already used ({0}).</value></data>
<data name="DuplicateUserName"><value>This user name is already used ({0}).</value></data>
</root>

View file

@ -25,6 +25,7 @@ using System.ComponentModel.DataAnnotations;
namespace Yavsc.Model.RolesAndMembers
{
/// <summary>
/// Register view model.
/// </summary>
@ -53,6 +54,13 @@ namespace Yavsc.Model.RolesAndMembers
[DisplayName("Adresse e-mail")]
[Required(ErrorMessage = "S'il vous plait, entrez un e-mail valide")]
public string Email { get; set; }
public bool IsApprouved { get; set; }
public RegisterModel()
{
IsApprouved = false;
}
}
}