Shannon
c500d29029
adds some exceptions
2014-03-11 14:44:18 +11:00
Shannon
d737afa327
Working on
2014-03-11 14:23:51 +11:00
Sebastiaan Janssen
ac59c5deb0
Fixing some potential upgrade issues and two issues found with the legacy member API
...
- For legacy API we never had and "approved" checkbox, so the assumption is that members are always approved
- The RequiresUniqueEmail check was wrong, previously the assumption was: if there's no e-mail then don't check for uniqueness
2014-02-22 16:44:02 +01:00
Shannon
c677f36f08
Changes some of the naming conventions for the underlying membership provider services bits.
2014-02-21 16:03:32 +11:00
Shannon
3e67b3034d
Added the ability to specify explicit db type's for a property type using an overloaded ctor argument. This allows us to specify explicit db types for properties without having them get overwritten during the repository saving logic which will always reset it to be the db type of the underlying property editor. In the case of our built-in membership properties we do not want this to happen. Fixes some unit tests. Removes built-in props from being included in the property types on the profile model on the front-end.
2014-02-21 12:56:00 +11:00
Shannon
606b5aa60a
fixes logic in membershiphelper updatemember
2014-02-20 13:55:56 +11:00
Shannon
40d1a09609
Updates the membership helper in how it updates the membership provider data, updates the editMember page to update the membership provider properties all via the membership provider
2014-02-19 23:49:53 +11:00
Shannon
cd53682ddb
removes ability to configure custom fields for the new membership provider
2014-02-19 17:52:45 +11:00
Shannon
078deb704b
Completes: U4-4255 Add readonly membership provider properties to the profile model
2014-02-19 16:27:14 +11:00
Shannon
2869f17eff
ensures the default property aliases are set during ctor
2014-02-17 18:02:29 +11:00
Shannon
509be9b431
Updates the underlying UmbracoServiceMembershipProvider to deal with 'object' for provider key, this then lets us deal with either guid or int for the new membership provider, just like the old one does.
2014-02-17 14:14:17 +11:00
Shannon
10ef5eb7bc
adds new interface for members' membership providers to implement so we know what aliases to store data against.
2014-02-17 13:16:28 +11:00
Shannon
4069fc8d1f
fixes issue with legacy user.Password property and fixes comparison of sections
2014-02-13 17:19:28 +11:00
Shannon
806008a7e9
Fixes issue with @ symbols in login name and a member group query
2014-02-12 18:02:00 +11:00
Shannon
ec08d3e910
Updates MembershipHelper to not change the email/name if the value has not changed. Updates the templates to show only validation summaries for their own values/prefixes. Fixes some underlying MVC methods that merge view state to ensure the prefixes work with validation summaries properly when not showing property level errors. Updates the Umb controllers to add model level validation msgs when failed.
2014-02-10 18:34:12 +11:00
Shannon
2bb58b6fca
Updates MembershipHelper to ensure that the membership provider is used when updating a profile, specifically to deal with unique emails. Updates the profile edit template to have correct validation procedures.
2014-02-10 16:22:15 +11:00
Shannon
4d2d656b3d
Moved ChangePassword method to MembershipHelper and makes it public, adds an overload.
2014-02-10 14:29:29 +11:00
Shannon
f28ae52ae3
moved logic to update a profile to MembershipHelper.
2014-01-28 21:57:00 +11:00
Shannon
cfd0973f00
Moves the registration logic to the MembershipHelper, fixes up the views to keep the indexes so props save.
2014-01-28 21:42:30 +11:00
Shannon
1bfdd83ba7
Cleans up more of the membership controllers and snippets to be using the membership helper and fixes up a few issues
2014-01-28 19:41:21 +11:00
Shannon
6fefcacc61
Adds more methods to the MembershipHelper, updates the RegisterModel and obsoletes the standard ctor so biz logic is not happening in the model, updates the snippets to use the correct way. Fixes an issue in the membership repo for persisting new members when the member type doesn't contain all the built-in props.
2014-01-28 18:59:27 +11:00
Shannon
9959ff667e
publicizes MembershipHelper and exposes it on the various base classes: SurfaceController, UmbracoApiController and UmbracoUserControl as the property "Members", will add more helper methods.
2014-01-28 16:58:55 +11:00
Shannon
de1f86c7a1
adds logic to the membership helper to create a new LoginStatusModel with the values filled in, obsoletes the empty ctor on LoginStatusModel since that does some biz logic lookups, instead replaces it with a static method to create an empty one.
2014-01-28 16:30:58 +11:00
Shannon
7a99ebd6d9
Starts the implementation of the new role provider.
2014-01-28 12:48:41 +11:00
Shannon
e2ac82abca
Gets most of the User and UserType legacy objects wrapping the new services, yay! Now just need to sort out all the caching stuff which I have tasks for.
2014-01-23 18:44:41 +11:00
Shannon
668265f1ac
Allows forcing pass change with new provider, updates conventions to not allow editing of question/answer - unfortunately cannot make the other ones readonly because noEdit data type is the wrong clr type.
2014-01-23 15:11:54 +11:00
Shannon
4735f27a66
Fixes more naming conventions with CreateMemberWithIdentity, fixes memberTasks to ensure the name is set, fixes new membership providers which had the name/email call reversed. Updates the cache refresher event handler to listen to MemberService events instead of the old legacy API events.
2014-01-23 14:55:41 +11:00
Shannon
fb9569d914
Fixes user membership providers to throw exceptions on duplicate emails when the provider is configured to not allow duplicates.
2014-01-22 13:20:00 +11:00
Shannon
47974d49fe
obsoletes old providers, creates new membership role provider stub
2014-01-22 12:16:47 +11:00
Shannon
3f8b3031c2
completes: U4-3996 Fix EditUser to use the membership provider properly, U4-3997 Fix EditMember to use the membership provider properly
2014-01-22 11:57:33 +11:00
Shannon
ffed85640d
fixes provider user key issue
2014-01-08 18:12:07 +11:00
Shannon
0245efe3cb
Fixes the change password dashboard to work properly. Fixes the EditUser to property save the member and the user. Adds new (probably temporary) MembershipHelper which is used to update a MembershipUser. Updates the User model to ignore the membership properties that we currently cannot persist. Ensures the legacy User membership provider still looks for a typed membership user (which should never have happened). Fixes small issue with underlying membership provider trying to encrypt an empty string.
2014-01-07 17:01:22 +11:00
Shannon
f3f7aa70d1
Ensures a default member/user type is assigned on membership provider initialize, adds more unit tests
2014-01-06 16:18:25 +11:00
Shannon
cd82bc6d21
streamlined the new membership provider classes so now they all share the same logic and use IMembershipMemberService<T> which is used by both IMember and IUser services
2014-01-06 15:38:34 +11:00
Shannon
8a70c440f2
Added many more unit tests for the membership provider base class and fixed some logic inconsistencies.
2013-12-28 18:55:43 +11:00
Shannon
edaa5ebd43
Lots more unit tests for the membership providers and some other fixups - have a new failing test as i need to sort out salting issue with encrypted passwords.
2013-12-24 14:03:18 +11:00
Shannon
1c139b685a
updates legacy membership provider to use efficient paging.
2013-12-20 18:12:54 +11:00
Shannon
7a8b3dc9bc
Updated the member service/repo to have paged queries and results which use db paging for maximum efficiency (of course only works for things like email, username but those are 2 specific things that are needed by the membership provider)
2013-12-20 18:11:12 +11:00
Shannon
414b65b269
More WIP on the membership providers - both new and old. They are now both working with the same up-to-date logic and base classes. Updated the interface definitions on the member services to support the membership provider queries - now to implement the logic.
2013-12-20 14:01:10 +11:00
Shannon
2dd04799b2
WIP membership provider updates
2013-12-19 18:33:25 +11:00
Shannon
ae32968efd
Updates the legacy membership providers and WebSecurity/Password changer to stay backwards compatible with their previous settings whilst still keeping all of the provider fixes.
2013-10-23 10:19:43 +11:00
Shannon
0fee434ac2
Working on the password changer control to present the correct inputs based on the membership provider given.... nearly there.
2013-10-17 22:40:38 +11:00
Shannon
13dcfbbd2b
Fixes build - removes .net 4.5 reference of EmailAddressAttribute - we'll leave that in for v7 when targettng 4.5
2013-10-11 10:58:31 +11:00
Shannon
63a4e00f52
tweaks to membership providers so if we cast we can specify the member type.
2013-10-10 17:23:29 +11:00
Shannon
cb8c1a31cb
Fixes/updates more of the member repository and related items
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
2013-10-10 16:50:57 +11:00
Shannon
4170713e29
More member service and provider updates
...
Conflicts:
src/Umbraco.Core/Persistence/Repositories/Interfaces/IMemberRepository.cs
src/Umbraco.Core/Persistence/Repositories/MemberRepository.cs
2013-10-10 14:51:01 +11:00
Shannon
80488e012f
Fixes up and implements more if the IMemberService, repository and membership providers (both legacy and what seems to be the new one).
2013-10-10 14:00:35 +11:00
Morten Christensen
7dee2802fe
Fixing Member and MemberType, so the ids are properly assigned through the repositories.
...
Adding test to assert that no Properties, PropertyTypes or PropertyGroups exists without an id when loaded from the db.
NOTE Changes signature of Member class as Email, Username and Password is required.
2013-10-01 10:20:16 +02:00
Morten Christensen
269f573b82
Refactoring the GetById method in the MemberService.
2013-09-04 16:00:38 +02:00
Morten Christensen
2ec367fd59
Removing the SecurityHelper and moving the 3 methods into the Provider as private classes, as they aren't used anywhere else.
...
The SecUtility will be removed along with the legacy MembershipProvider when cleanup is possible.
2013-09-04 15:44:29 +02:00