Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi Guys.
I'm updating a rather old site, and has succesfully upgraded to v. 6.1.6. Now it's time to go over the code and update that.
So... How do I manage to get the current user in V.6 API?
I want to "tanslate" the old code:
User.GetCurrent().UserType.Alias
to something else, but I've been looking high and low for a service or something else to do that. Where has this gone?
Cheers,
Niels
It returns the Member type.
if (User.Identity.IsAuthenticated) { var memberTypeAlias = Member.GetCurrentMember().ContentType.Alias; }
Thanx mate :)
Where does User recide now? What namespace?
Just use the .Net membership class :) You can access all the membership information from there. Charlie
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Where has User.CurrentUser() gone in V.6 API?
Hi Guys.
I'm updating a rather old site, and has succesfully upgraded to v. 6.1.6. Now it's time to go over the code and update that.
So... How do I manage to get the current user in V.6 API?
I want to "tanslate" the old code:
User.GetCurrent().UserType.Alias
to something else, but I've been looking high and low for a service or something else to do that. Where has this gone?
Cheers,
Niels
It returns the Member type.
Thanx mate :)
Where does User recide now? What namespace?
Just use the .Net membership class :) You can access all the membership information from there. Charlie
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.