From 84f9f634075e3b89a3ae34d2208404096f4af8ca Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Wed, 15 Apr 2015 05:23:08 -0700 Subject: [PATCH] bugs fix --- WebsitePanel/Database/update_db.sql | 6 +- .../OrganizationProxy.cs | 79 ++++++++++++++++++- .../HostedSolution/OrganizationController.cs | 15 ++++ .../esOrganizations.asmx.cs | 6 ++ .../HostedSolution/IOrganization.cs | 2 + .../OrganizationProvider.cs | 63 +++++++++++++-- .../OrganizationProxy.cs | 77 +++++++++++++++++- .../WebsitePanel.Server/Organizations.asmx.cs | 6 ++ .../Services/ISmsDistributionService.cs | 4 +- .../SmsAuthenticationService.cs | 4 +- .../Services/TwillioSmsDistributionService.cs | 14 ++-- .../App_Start/RouteConfig.cs | 6 ++ .../App_Start/Routes/AccountRouteNames.cs | 2 + .../Controllers/AccountController.cs | 66 +++++++++++++--- .../Controllers/BaseController.cs | 33 ++++++++ .../Controllers/FileSystemController.cs | 4 +- .../CustomAttributes/PhoneNumberAttribute.cs | 2 +- .../UniqueAdPhoneNumberAttribute.cs | 60 ++++++++++++++ .../Profiles/Account/UserProfileProfile.cs | 3 +- .../Models/Account/PasswordChangeModel.cs | 2 +- .../Models/Account/PasswordResetEmailModel.cs | 2 +- .../Models/Account/PasswordResetSmsModel.cs | 2 +- .../Models/Account/UserProfile.cs | 18 ++++- .../Models/AccountModel.cs | 2 +- .../Common/{BaseModel.cs => AjaxModel.cs} | 7 +- .../Common/EditorTemplates/PasswordEditor.cs | 2 +- .../Models/ErrorModel.cs | 2 +- .../Models/FileSystem/DeleteFilesModel.cs | 2 +- .../Models/ModelForWebDav.cs | 2 +- .../Models/OfficeOnlineModel.cs | 2 +- .../Resources/Messages.Designer.cs | 38 ++++++++- .../Resources/Messages.resx | 14 +++- .../Resources/UI.Designer.cs | 18 +++++ .../Resources/UI.resx | 6 ++ .../Views/Account/Login.cshtml | 1 + .../Views/Account/PasswordChange.cshtml | 2 +- .../Views/Account/PasswordResetEmail.cshtml | 14 +--- .../Views/Account/PasswordResetSms.cshtml | 16 +--- .../Views/Account/UserProfile.cshtml | 13 +++ .../Views/FileSystem/_ShowContentTable.cshtml | 2 +- .../FileSystem/_ShowContentTopMenu.cshtml | 4 +- .../Views/Shared/_Layout.cshtml | 22 +++--- .../WebsitePanel.WebDavPortal.csproj | 5 +- .../UserAccountMailTemplateSettings.ascx | 2 +- 44 files changed, 560 insertions(+), 92 deletions(-) create mode 100644 WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/BaseController.cs create mode 100644 WebsitePanel/Sources/WebsitePanel.WebDavPortal/CustomAttributes/UniqueAdPhoneNumberAttribute.cs rename WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/{BaseModel.cs => AjaxModel.cs} (81%) diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 3fb95e49..69eb4ca1 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -9529,7 +9529,7 @@ Hello #user.FirstName#,

-Your password will expire at #user.PasswordExpirationDateTime#. You can reset your own password by visiting the following page: +Your password expiration date is #user.PasswordExpirationDateTime#. You can reset your own password by visiting the following page:

#passwordResetLink# @@ -9581,7 +9581,7 @@ Set @UserPasswordExpirationLetterTextBody = N'================================== Hello #user.FirstName#, -Your password will expire at #user.PasswordExpirationDateTime#. You can reset your own password by visiting the following page: +Your password expiration date is #user.PasswordExpirationDateTime#. You can reset your own password by visiting the following page: #passwordResetLink# @@ -9612,7 +9612,7 @@ DECLARE @UserPasswordResetLetterHtmlBody nvarchar(2500) Set @UserPasswordResetLetterHtmlBody = N' - Password expiration notification + Password reset notification