Problem when user signs on but has not yet activated his account

2 views
Skip to first unread message

Colm

unread,
Nov 28, 2009, 6:44:39 PM11/28/09
to CommunityEngine
Hello,

I've seen a problem when a user has gone through the first part of the
sign-up but has not yet read the activation e-mail that is sent. In
that case any attempt to view the homepage gives a 404. Having looked
at it a bit I see that in base_controller.rb we have
def get_additional_homepage_data
.......
@active_users = User.active.find_by_activity({:limit =>
5, :require_avatar => false})

and in user.rb we have
named_scope :active, :conditions => ["users.activated_at IS NOT
NULL"]

so the user exists but has user.activated = NULL and this seems to
cause the problem, at least I can say that when I manually set the
activated field to some value the error disappears and the homepage is
displayed normally.
I'm using the master version of CE not edge.

Thanks / Colm

Bruno Bornsztein

unread,
Nov 30, 2009, 10:58:36 AM11/30/09
to communi...@googlegroups.com
This is a known bug in master, fixed in edge, please search lighthouse to find the relevant tickets.
Thanks,
Bruno


--

You received this message because you are subscribed to the Google Groups "CommunityEngine" group.
To post to this group, send email to communi...@googlegroups.com.
To unsubscribe from this group, send email to communityengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/communityengine?hl=en.



Reply all
Reply to author
Forward
0 new messages