Verification Email Process

35 views
Skip to first unread message

Henry

unread,
Nov 26, 2009, 7:02:28 AM11/26/09
to Google Web Toolkit
Hi guys,

I have my GWT application and I need to implement a process to verify
the email address when someone creates a new account.
I've the URL (www.XXXXXX.com) which give me the whole application
every time I hit it.
In my process I'll send an email after the successful creation of the
account, this email will have a link inside like that (www.XXXXXX.com?
method=verify&username=FFF), by hitting this URL the server will give
me the application again like the first time, then on the onModule()
of my entryPoint class, I'll take the parameters of this URL, and in
that case, I'll make and asyncronohus call to the server to verify the
email and wait for the callback to show a panel to the user saying
that the email has been verify. Before getting that callback I can
show something saying that the email has being verified while I'm
waiting for the callback.
Is it the right way to go?

Thanks in advance.

Martin Trummer

unread,
Nov 27, 2009, 4:37:42 AM11/27/09
to Google Web Toolkit
If it works for you it must be right :)

another aproach would be to write a small servlet that
does the verification job:

In this case the URL in the mail would point to the
verification servlet.
the servlet could check if everything is correct and
the redirect to your application (or to an errorpage,
or send back an errorpage directly, ..)

this would have the benefit, that the servlets reaction
time is instantaneous - no need to load your whole
application before doing the verification.

Martin Trummer

unread,
Nov 27, 2009, 4:48:49 AM11/27/09
to Google Web Toolkit
another benefit is, that you don't have the
username in the url as a parameter when the app is started

Henry

unread,
Dec 1, 2009, 6:37:37 AM12/1/09
to Google Web Toolkit
Thank you very much Martin for your reply, Ill think about that :-).
Reply all
Reply to author
Forward
0 new messages