MemberControls updated - anyone care to test? Options
hartvig
Posted: Friday, October 26, 2007 1:14:14 PM

Rank: Addict

Joined: 3/17/2008
Posts: 733
Location: Nyborg, Denmark

I've updated the MemberControls and before I make it into a *documented* package on the repo, I'd appreciate if someone would give it a test :-)

Features:
- Login control: A usercontrol that can double as a sign in control as well as a little label saying "You're logged in as Niels Hartvig" (or even another name ;-))
- Forgot password: A usercontrol that can send authentication info
- Register control: A usercontrol so people can sign up

Improvements since current version in the package repo:
- General clean-up of code behind
- Clean semantic markup (let me know if it can be improved). No more tables, all field sets and labels. Option to turn off client validation
- Option to add custom member properties to the sign up control. Simply tell the user control (via macro parameters) which tabs it should fetch properties from and make sure the properties are "editable by the member"
- Sessions are now used instead of one year cookies
- Option to use cookies instead of session

You can download it on Codeplex at:
http://www.codeplex.com/umbracoext/Release/ProjectReleases.aspx - the release as a package)
http://www.codeplex.com/umbracoext/SourceControl/ListDownloadableCommits.aspx - the source

/n

Jeeeez, did I really start this :-)
Gerben
Posted: Friday, October 26, 2007 2:14:48 PM
Rank: Newbie

Joined: 10/24/2007
Posts: 8
Hi Niels,

I've done some testing, this is what I did.

- Used a clean install of Umbraco with WebsiteWizard package
- Downloadeded the UMB file
- Installed it in Umbraco (works greats)
- Inserted a Login Macro on the template of the homepage (homepage available under http://umbraco/)
- Inserted a Login Macro on the template of a sub page (e.g. news)

Macro code:
Code:

<?UMBRACO_MACRO macroAlias="MemberControls-Login" UseCookiesForAuthentication="1" LogOutOnly="0" LoggedInText="You are logged in as %%NAME%%" SignOutLinkText="Please log out" UsernameCaption="Gebruikersnaam" PasswordCaption="Wachtwoord"></?UMBRACO_MACRO>


So far, I see the following unexpected behaviour:

- If I try to login on the homepage, I get an "The page cannot be displayed" error. Perhaps this is caused by a wrong redirect? (Redirect to "" for example can cause this type of error in my experience). When I go back to the site, it appears I have logged in succesfully (it shows my name). So the login is working.

- If I login on the news page, every thing works smooth.

- If I change the UseCookiesForAuthentication to "0", the login works, but I cannot log out. If I click the logout link, the page reloads, but ater that, it still tells me I am logged in.

That's it so far!

Greetings,
Gerben

mortenbock
Posted: Friday, October 26, 2007 2:31:28 PM

Rank: Addict

Joined: 7/19/2006
Posts: 661
Location: Århus, Denmark
Logging in with sessions is buggy in general.

If I recall correctly, the API method for logging out does not clear the session. It only removes macros.

Also I recall problems with using GetCurrentMember() when the member is logged in using sessions:
http://www.codeplex.com/umbraco/WorkItem/View.aspx?WorkItemId=12193

Morten Bock - Level 2 certified - My danish blog with a few english posts | CodeGarden on Facebook
martinbentzen
Posted: Thursday, November 01, 2007 2:46:22 PM
Rank: Devotee

Joined: 7/20/2006
Posts: 48
Location: Copenhagen, Denmark
Hi,

Thanx for a great work...

I miss the Show Profile usercontrol, and the Edit profile functionality as well..

It seems, that it has been in the MemberControls at a earlier stage ?? Or do I use the current controls in a wrong way ?

Best regards
Martin

Udblog.dk
jbt1734
Posted: Thursday, November 01, 2007 11:10:57 PM
Rank: Newbie

Joined: 10/30/2007
Posts: 3
Thanks so much for the update--and especially for using fieldsets and labels and no tables! :)

It works great for me so far, and perfect timing because I'm new to this and implementing log-in for the first time in Umbraco.

Quick question--is there a way to display an error message to the user if he types in the wrong name/password?
timgaunt
Posted: Thursday, December 06, 2007 9:34:06 AM

Rank: Devotee

Joined: 10/31/2007
Posts: 94
Location: Birmingham (UK)
I've found two issues:

1. The width is set on the password field so you can't style it.
2. The logout button doesn't seem to log the user out -this could be because I had the old control on the site.

HTH

Tim
agiliti
Posted: Sunday, January 20, 2008 3:08:22 PM
Rank: Enthusiast

Joined: 12/26/2007
Posts: 11
Hi,

Just something I found.

After I installed the package, the property "UseCookiesForAuthentication" was not showing up in my macro properties list. To get around this I recreated the macro and regenerated the macro properties through browse properties. Once I had that property available I was able to get the logout link working.

Apart from that - all good.

HTH, Peter

Brisbane Web Design - web design | web development | internet marketing - Agiliti Solutions
Dekker500
Posted: Saturday, April 12, 2008 11:39:59 PM
Rank: Newbie

Joined: 2/20/2008
Posts: 16
Location: Canada
I'm somewhat disappointed in the member handling in Umbraco...

When I started my implementation of my sites using Umbraco, I had started with the static portions (simplest to get online). Now that I am working on the member-based sections, I find that the MemberControls are somewhat... minimal. I need login-logout-profile functionality, and I don't think I am alone in this.

The membercontrols 1.0 beta was released in late Oct 2007, and no fixes have been released.

I see a possible solution has been posted above, but has anyone used it long enough to determine if the fix is indeed stable? Should I just download the source, apply the patch, and give it a try?


Dekker
www.WoodworkDetails.com
kalpa
Posted: Sunday, April 13, 2008 9:17:41 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 344
Location: Göteborg, Sweden
Dekker500, yes you could do that... But I've just done that myself and will have a working binary up and running some day next week... Maybe I might even find the time to finish the much wanted book at Umbraco.org once it's up and running...
So far it's working OK and I've added feedback for faulty logins and will try to implement the editable profile page on monday...
// ;) Kalle


" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Dekker500
Posted: Monday, April 14, 2008 1:55:43 AM
Rank: Newbie

Joined: 2/20/2008
Posts: 16
Location: Canada
kalpa wrote:
...I've just done that myself and will have a working binary up and running some day next week...


Thanks Kalle. That would be a great help!

kalpa wrote:
Maybe I might even find the time to finish the much wanted book at Umbraco.org once it's up and running...


Actually, I've been thinking of doing just that. I've been having enough frustrations with Umbraco, that I was going to fight it with documentation... I was going to document and publish everything that I *DID* know, and poll for comments. At least that way there would be a starting point, and I could incorporate the comments to get a final document.

But since you volunteered first ;)


Dekker
www.WoodworkDetails.com
kalpa
Posted: Monday, April 14, 2008 8:05:29 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 344
Location: Göteborg, Sweden
Well, I didn't really volonteer... I was black-mailed by Niels, if I promised to write a book he made an update of the member controls...

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Petr Snobelt
Posted: Monday, April 14, 2008 9:13:33 AM
Rank: Devotee

Joined: 10/2/2007
Posts: 77
Location: Czech Republic
I hope there is not reason to switch to session over cookies.
Cookies are OK, but with editable expiration (by macro parameter).

Petr
kalpa
Posted: Monday, April 14, 2008 11:13:09 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 344
Location: Göteborg, Sweden
Petr Snobelt wrote:
Cookies are OK, but with editable expiration (by macro parameter)


I totally agree, for now it's set to 1 year...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Ig_p118
Posted: Thursday, April 17, 2008 10:07:35 AM
Rank: Aficionado

Joined: 7/21/2006
Posts: 155
Location: Italy
Works? How works?

Red Consulting s.a.s - Umbraco from v1.0
Rdunzl
Posted: Sunday, April 20, 2008 4:23:08 AM
Rank: Newbie

Joined: 3/22/2008
Posts: 9
Location: Denmark
The following is feedback on Umbraco's membership features in general and not a test feedback.

I think the Member-stuff in general should be implemented using the .NET 2.0 Membership features.

Then one could use the native .NET login, forgot password, etc. controls and it would also be easier to integrate Umbraco and other systems.

In general I think CMS'es should emphasize content management and be open ended when it comes to managing other stuff than content.

While a CMS is indeed a valuable and almost indispensable function in a web site I beleive that web sites as such are clients that depends on several backend systems (in the least the ones I work on).

Most companies these days has CRMs, ERPs, ETCs and I find that members either are coming directly from such systems or they are "site members" with site specific profile properties but then they are linked to customer info in a CRM/ERP system and the .NET Membership, Role and Profile providers comes in handy in both of these cases.

While it is ok that the CMS manages the cms users (admins, editors) I think they should stay away from the web site users. They are not content so they should not be in the CMS.

I'm aware that present day CMS'es aren't just CMS'es as such and other CMS'es also provides membership features and that MS Ax for instance has a cms/portal module as well, so things are a bit blurry, but anyway...

I believe that web sites are only CMS centric in very rare cases, and even in these cases I think Umbraco would benefit from simply implementing a standard SqlMembershipProvider instead of reinventing the wheel (thanks to god another CMS I work with has given up their own odd user management in their next major release which is code named Crestone).

When a user is logged into a web site then Page.User.Identity.IsAuthenticated should be true. I know this is not imperative, but this is how the ASP.NET framework is designed and I think it's a neat design. It could also improve the learning curve when you get your hands on Umbraco if you turned to the stuff from the .NET application foundation :-)

The general idea of the above is that members should be logging into the site and not into the CMS.
kalpa
Posted: Sunday, April 20, 2008 10:42:50 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 344
Location: Göteborg, Sweden
@Rdunzl:

In the "Membership provider should be supported" part I agree, but it's already implemented in the source branch currently living on codeplex. If you download a changeset from codeplex you'll se the <membership> section in web.config...
So in this matter I guess the great Umbraco community is the ones to thank, not God (as in the case with Sitecore apparently implementing membership providers in next release) ;)

The "members aren't content" discussion is where I disagree, but to be able to discuss these kind of strategical/architectural issues you must be aware of the big picture in every scenario.

To start with .Net 2 wasn't around when Umbraco was born, so no wheels have been "reinvented" here, access rights and structure are absolutely a part of the content and that's why I don't buy the logic that "everything should be elsewhere", in some cases that's true but in more cases not, very few SMEs (SmallMediumEnterprises) has an IS/IT environment with CRM/ERP platforms reachable from the DMZ/Internet, but if a website is in intranet/AD environment this is more normal...

I believe that most websites will have more help from a flexible import/sync utility for members than the actual Membership, but of course Membership providers will open up for more of these tools...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
kalpa
Posted: Sunday, April 20, 2008 10:47:10 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 344
Location: Göteborg, Sweden
Oh, I almost forgot:

I'm done updating the MemberControls BTW, I'm currently trying to make a working package from these controls/macros I'll get on it again tonight when the sun isn't that wonderful...

// ;) Kalle (going outside and just sitting in the sun ;)

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Rdunzl
Posted: Sunday, April 20, 2008 2:36:25 PM
Rank: Newbie

Joined: 3/22/2008
Posts: 9
Location: Denmark
I am sorry for polluting this thread where my considerations didn't belong in the first place.

I'm glad to hear that the Umbraco community is already dealing with this matter, and I hope that I'll become a part of the active community when I have more experience with Umbraco (I already have two projects in queue after the one I'm doing now, so I guess it won't take that long).

@Kalle: I am also very glad to hear your opinion and I'd like to continue the discussion some place more appropriate than this thread that I shouldn't pollute Eh?
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.