in a number of places to check if a member has been approved.
I noticed the property IMember.IsApproved in IntelliSense, and wondered if I could do a global find-replace to switch the code round and expect it to behave the same?
I like the syntax without the "magic string" better.
Are IMember.IsApproved and IMember.GetValue<bool>("umbracoMemberApproved") equivalent?
The code I am working on is using
in a number of places to check if a member has been approved.
I noticed the property
IMember.IsApproved
in IntelliSense, and wondered if I could do a global find-replace to switch the code round and expect it to behave the same?I like the syntax without the "magic string" better.
Hi Gary,
looking at the source i think they are the same thing.
In the default membership provider the IsApproved settings is pulled from the umbracoMemberApproved property.
https://github.com/umbraco/Umbraco-CMS/blob/5397f2c53acbdeb0805e1fe39fda938f571d295a/src/Umbraco.Web/Security/Providers/MembersMembershipProvider.cs#L34
Kevin
is working on a reply...