* 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:
parent
c943606b43
commit
cce43b9daf
10 changed files with 228 additions and 6 deletions
12
yavscModel/LocalizedText.Designer.cs
generated
12
yavscModel/LocalizedText.Designer.cs
generated
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue