* AccountController.cs: Register and reset passord

from Web API

* GCMController.cs: initial creation, will host GCM calls and related
  procedures.

* ResetPassword.aspx: Html view to reset the password

* LocalizedText.resx:
* LocalizedText.fr.resx: new String form circles

* Web.config:
* Web.csproj:
* YavscModel.csproj:
* LocalizedText.Designer.cs:
* Profile.cs:
* Profile.cs:
* LocalizedText.fr.Designer.cs:
* LoginModel.cs:
* Publishing.cs:
* CalendarController.cs:
* LoginModel.cs:
* GCMRegister.cs:
* Publishing.cs:
* GCMRegister.cs:
* NewRoleModel.cs:
* NewRoleModel.cs:
* RegisterModel.cs:
* NewAdminModel.cs:
* RegisterModel.cs:
* NewAdminModel.cs:
* LostPasswordModel.cs:
* RegisterViewModel.cs:
* RegisterViewModel.cs:
* ProviderPublicInfo.cs:
* RegisterClientModel.cs:
* ChangePasswordModel.cs:
* ProviderPublicInfo.cs:
* RegisterClientModel.cs:
* ChangePasswordModel.cs: Fixes a typo (in the namespace :-/)

* NpgsqlCircleProvider.cs: Fixes the Circle creation

* Global.asax.cs:
* AdminController.cs:
* NpgsqlContentProvider.cs: code formatting

* BlogsController.cs:
* CircleController.cs:
* WorkFlowController.cs:
* PaypalApiController.cs:
* FrontOfficeController.cs: refactoring

* AccountController.cs: Adds the way to reset the password

* FrontOfficeController.cs: xml doc

* T.cs: Make this class an helper to translation

* YavscHelpers.cs: Implements the e-mail sending

* style.css: style uniformization

* Circles.aspx: Implements the Html interface to Circle creation
  (modifications and deletions are still to implement)

* Register.ascx: Allows the error display in case of lack of power of
  the user at registering another user.

* Estimate.aspx: use the partial view to register from the Account
  folder.
Cleans the useless reference to ~/Theme/dark/style.css, that was for
  using the "tablesorter.js", no used anymore.

* Web.config: Trying to have all the Index pages to work...
This commit is contained in:
Paul Schneider 2015-06-18 11:02:23 +02:00
commit 53930befd3
44 changed files with 705 additions and 135 deletions

View file

@ -1,3 +1,34 @@
2015-06-18 Paul Schneider <paul@pschneider.fr>
* YavscModel.csproj:
* LocalizedText.resx:
* LocalizedText.fr.resx:
* LocalizedText.Designer.cs:
* Profile.cs:
* Profile.cs:
* LocalizedText.fr.Designer.cs:
* LoginModel.cs:
* Publishing.cs:
* LoginModel.cs:
* Publishing.cs:
* GCMRegister.cs:
* NewRoleModel.cs:
* GCMRegister.cs:
* NewRoleModel.cs:
* NewAdminModel.cs:
* RegisterModel.cs:
* NewAdminModel.cs:
* RegisterModel.cs:
* RegisterViewModel.cs:
* LostPasswordModel.cs:
* ProviderPublicInfo.cs:
* RegisterViewModel.cs:
* ProviderPublicInfo.cs:
* ChangePasswordModel.cs:
* RegisterClientModel.cs:
* RegisterClientModel.cs:
* ChangePasswordModel.cs:
2015-06-12 Paul Schneider <paul@pschneider.fr>
* YavscModel.csproj:

View file

@ -76,6 +76,12 @@ namespace Yavsc.Model {
}
}
public static string Create {
get {
return ResourceManager.GetString("Create", resourceCulture);
}
}
public static string was_added_to_the_empty_role {
get {
return ResourceManager.GetString("was_added_to_the_empty_role", resourceCulture);
@ -142,6 +148,12 @@ namespace Yavsc.Model {
}
}
public static string Members {
get {
return ResourceManager.GetString("Members", resourceCulture);
}
}
public static string User_name {
get {
return ResourceManager.GetString("User_name", resourceCulture);

View file

@ -76,6 +76,12 @@ namespace Yavsc.Model {
}
}
public static string Create {
get {
return ResourceManager.GetString("Create", resourceCulture);
}
}
public static string was_added_to_the_empty_role {
get {
return ResourceManager.GetString("was_added_to_the_empty_role", resourceCulture);
@ -142,6 +148,12 @@ namespace Yavsc.Model {
}
}
public static string Members {
get {
return ResourceManager.GetString("Members", resourceCulture);
}
}
public static string User_name {
get {
return ResourceManager.GetString("User_name", resourceCulture);

View file

@ -60,4 +60,7 @@
<data name="ImgLocator"><value>URI de l'image</value></data>
<data name="Home"><value>Accueil</value></data>
<data name="Bill edition"><value>Édition d'un billet</value></data>
<data name="Create"><value>Créer</value></data>
<data name="Members"><value>Membres</value></data>
<data name="UserName"><value>Nom d'utilisateur</value></data>
</root>

View file

@ -62,4 +62,7 @@
<data name="ImgLocator"><value>Image URI</value></data>
<data name="Home"><value>Home</value></data>
<data name="Bill edition"><value>Bill edition</value></data>
<data name="Create"><value>Create</value></data>
<data name="Members"><value>Members</value></data>
<data name="UserName"><value>User Name</value></data>
</root>

View file

@ -12,14 +12,14 @@ namespace Yavsc.Model.RolesAndMembers
/// Gets or sets the username.
/// </summary>
/// <value>The username.</value>
[Required(ErrorMessage = "Please enter a Username")]
[Required(ErrorMessage = "Please, enter your user name")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the old password.
/// </summary>
/// <value>The old password.</value>
[Required(ErrorMessage = "Please your old Password")]
[Required(ErrorMessage = "Please, enter your old Password")]
public string OldPassword { get; set; }
/// <summary>

View file

@ -0,0 +1,34 @@
//
// GCMRegister.cs
//
// Author:
// Paul Schneider <paul@pschneider.fr>
//
// Copyright (c) 2015 GNU GPL
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace Yavsc.Model.RolesAndMembers
{
public class GCMRegister: RegisterModel
{
public GCMRegister ()
{
}
public string GCMRegistrationId { get; set; }
}
}

View file

@ -0,0 +1,31 @@
//
// LostPasswordModel.cs
//
// Author:
// Paul Schneider <paul@pschneider.fr>
//
// Copyright (c) 2015 GNU GPL
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
namespace Yavsc.Model.RolesAndMembers
{
public class LostPasswordModel
{
public string UserName { get; set; }
public string Email { get; set; }
}
}

View file

@ -35,8 +35,8 @@ namespace Yavsc.Model.RolesAndMembers
/// Gets or sets the name of the user.
/// </summary>
/// <value>The name of the user.</value>
[Localizable(true)]
[Required(ErrorMessage = "S'il vous plait, entrez un nom d'utilisateur")]
[Localizable(true), Required(ErrorMessage = "S'il vous plait, entrez un nom d'utilisateur")
,Display(ResourceType=typeof(LocalizedText),Name="UserName")]
public string UserName { get; set; }
/// <summary>

View file

@ -44,14 +44,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RolesAndMemebers\ChangePasswordModel.cs" />
<Compile Include="RolesAndMemebers\LoginModel.cs" />
<Compile Include="RolesAndMemebers\NewAdminModel.cs" />
<Compile Include="RolesAndMemebers\NewRoleModel.cs" />
<Compile Include="RolesAndMemebers\RegisterViewModel.cs" />
<Compile Include="Admin\RestoreQuery.cs" />
<Compile Include="Admin\DataAccess.cs" />
<Compile Include="RolesAndMemebers\Profile.cs" />
<Compile Include="FileSystem\FileInfoCollection.cs" />
<Compile Include="WorkFlow\Writting.cs" />
<Compile Include="WorkFlow\Estimate.cs" />
@ -134,8 +128,6 @@
<Compile Include="Google\CalendarEventList.cs" />
<Compile Include="Google\GDate.cs" />
<Compile Include="Google\Resource.cs" />
<Compile Include="RolesAndMemebers\RegisterModel.cs" />
<Compile Include="RolesAndMemebers\RegisterClientModel.cs" />
<Compile Include="Google\Messaging\MessageWithPayLoad.cs" />
<Compile Include="Google\Messaging\MessageWithPayloadResponse.cs" />
<Compile Include="Google\Messaging\Notification.cs" />
@ -149,8 +141,6 @@
<Compile Include="Calendar\Schedule.cs" />
<Compile Include="Calendar\WeekDay.cs" />
<Compile Include="Calendar\YaEvent.cs" />
<Compile Include="RolesAndMemebers\Publishing.cs" />
<Compile Include="RolesAndMemebers\ProviderPublicInfo.cs" />
<Compile Include="Google\GCMRegisterModel.cs" />
<Compile Include="Circles\Circle.cs" />
<Compile Include="Circles\CircleInfo.cs" />
@ -158,10 +148,21 @@
<Compile Include="Circles\CircleManager.cs" />
<Compile Include="Circles\CircleProvider.cs" />
<Compile Include="DataProviderConfigurationSection.cs" />
<Compile Include="RolesAndMembers\ChangePasswordModel.cs" />
<Compile Include="RolesAndMembers\LoginModel.cs" />
<Compile Include="RolesAndMembers\NewAdminModel.cs" />
<Compile Include="RolesAndMembers\NewRoleModel.cs" />
<Compile Include="RolesAndMembers\RegisterViewModel.cs" />
<Compile Include="RolesAndMembers\Profile.cs" />
<Compile Include="RolesAndMembers\RegisterModel.cs" />
<Compile Include="RolesAndMembers\RegisterClientModel.cs" />
<Compile Include="RolesAndMembers\Publishing.cs" />
<Compile Include="RolesAndMembers\ProviderPublicInfo.cs" />
<Compile Include="RolesAndMembers\GCMRegister.cs" />
<Compile Include="RolesAndMembers\LostPasswordModel.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>
<Folder Include="RolesAndMemebers\" />
<Folder Include="WorkFlow\" />
<Folder Include="Blogs\" />
<Folder Include="Admin\" />
@ -172,6 +173,7 @@
<Folder Include="FrontOffice\Catalog\Billing\" />
<Folder Include="Google\Messaging\" />
<Folder Include="Circles\" />
<Folder Include="RolesAndMembers\" />
</ItemGroup>
<ProjectExtensions>
<MonoDevelop>