Email activation and Confirm Email field

28 views
Skip to first unread message

Scorpio

unread,
Sep 30, 2011, 9:52:43 AM9/30/11
to Hobo Users
Hi,
I was wondering how to do two thing
1. Create a confirm email field (like the one hobo has for password)
2. Set an account to active only after the user has clicked on a
activation link in the mail

As far as 1. goes I think I *might* be able to figure it out if i know
where hobo keeps its user model logic and work from there

For the second one i know how to send and email, set the account as
inactive by default and redirect to a page informing the user that
the account must be activated but i have no idea how to create an
activation link.

Please help guys

kevinpfromnm

unread,
Sep 30, 2011, 3:36:38 PM9/30/11
to hobo...@googlegroups.com
If you make a new hobo app with 1.3, the setup wizard has options for an activation required site which should give you the code you need.

The first problem, the confirm password and password are actually just attribute accessors and the actual db field is generated from that.  You could make an attribute for confirmation, add it to the lifecycle create params and then do a validation check that the confirm email and email fields are the same.

Scorpio

unread,
Oct 1, 2011, 9:07:50 AM10/1/11
to Hobo Users
I can't work with hobo 1.3 as the documentation is even worse than for
1.0. but thanks for trying :)

kevinpfromnm

unread,
Oct 2, 2011, 11:58:11 AM10/2/11
to hobo...@googlegroups.com
You don't have to work with it, but it will give you an example of the basic lifecycle code needed.

Scorpio

unread,
Oct 3, 2011, 5:01:07 PM10/3/11
to Hobo Users
I don't think you understand. Due to underdeveloped DOCs I'm sticking
to 1.0 for the moment.

kevinpfromnm

unread,
Oct 3, 2011, 9:57:27 PM10/3/11
to hobo...@googlegroups.com
I don't think you understood my suggestion.  Make a 1.3 app, run the setup wizard, see what code it generates for the user activation lifecycle, copy that and put it in your 1.0 app.  Delete 1.3 app.

Scorpio

unread,
Oct 5, 2011, 8:52:27 AM10/5/11
to Hobo Users
Doing that just now with a 1.0 app. Progress is low but steady. Thanks
for the tip.

On Oct 4, 3:57 am, kevinpfromnm <kevinpfro...@gmail.com> wrote:
> I don't think you understood my suggestion.  Make a 1.3 app, run the setup
> wizard, see what code it generates for the user activation lifecycle, copy
> that and put it in your *1.0 app.*  Delete 1.3 app.
Reply all
Reply to author
Forward
0 new messages