kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

Register plugin confirmation link #337

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What steps will reproduce the problem?
1.install register plugin and configure a page to display the register form
2.Ensure that the site domain is set correctly in the configuration section
3.fill in the registration form with an email address you have access to
3.When the email arrives the confirmation link will look something like this: 
http://<yourdomain>/_ah/plugin/register/confirm?id=d2cc26c2345266e9d80b4a5ebb469
0dc
4. click the link

What is the expected output? What do you see instead?
I expect my browser to be directed to a registration confirmation page. However 
I get a "page not found" message from my browser.

Original issue reported on code.google.com by iain.ked...@gmail.com on 2 Sep 2010 at 12:13

GoogleCodeExporter commented 9 years ago
Added confirmation page URL. 

If confirmation was successful then this page will have parameters: 

/confirmPageUrl?status=ok&userEmail=user@mail.com

If confirmation wasn't successful: 

/confirmPageUrl?status=error

Original comment by kinyelo@gmail.com on 27 Nov 2010 at 12:37

GoogleCodeExporter commented 9 years ago
Updated documentation - http://staging.vosao.org/addons/register

Is there a way to access the status and userEmail parameters from Vosao? 

Or are they there as a hook for custom developers to extend the register 
plugin. 

Original comment by ted.husted on 27 Nov 2010 at 11:17

GoogleCodeExporter commented 9 years ago
Page URL parameters can be accessed by $request.getParameter("status")  as we 
have HttpServletRequest binded to $request in Velocity context.

Also you can get UserVO by user email using $service.findUser(userEmail)

Original comment by kinyelo@gmail.com on 28 Nov 2010 at 6:47