You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by laxmiraghu <la...@yahoo.com> on 2008/10/01 14:25:25 UTC

LOgin page url always takes me to the page last visited

I'm facing a strange problem.

I've a login portlet as the default home page of the below url:

http://localhost:8080/jetspeed/portal

Then i click on registration link in the login portlet and go to
registration page and register my details and click on 'Create My Account'.
Then it will display another page saying "please check your mail to activate
your account.....".

Now i check my email and click on the url provided to activate the account.
That URL takes me to a page which has the above link
(http://localhost:8080/jetspeed/portal) to start exploring the portal.

Now the strange thing is: the moment i click on that url, it takes me to a
page where i left the portal earlier .... ie. to the page "pls check your
mail to activate your account....." and not to my login page.

I feel that it's due to session data. Do i need to invalidate the session
after registration is over? If so, how will i do it.

How can i make my login page to appear upon clicking the portal url?

Please help. Any help is highly appreciated.

Thank you. 
-- 
View this message in context: http://www.nabble.com/LOgin-page-url-always-takes-me-to-the-page-last-visited-tp19759320p19759320.html
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: LOgin page url always takes me to the page last visited

Posted by David Sean Taylor <dt...@onehippo.com>.
On Oct 1, 2008, at 2:25 PM, laxmiraghu wrote:

>
> I'm facing a strange problem.
>
> I've a login portlet as the default home page of the below url:
>
> http://localhost:8080/jetspeed/portal
>
> Then i click on registration link in the login portlet and go to
> registration page and register my details and click on 'Create My  
> Account'.
> Then it will display another page saying "please check your mail to  
> activate
> your account.....".
>
> Now i check my email and click on the url provided to activate the  
> account.
> That URL takes me to a page which has the above link
> (http://localhost:8080/jetspeed/portal) to start exploring the portal.
>
> Now the strange thing is: the moment i click on that url, it takes  
> me to a
> page where i left the portal earlier .... ie. to the page "pls check  
> your
> mail to activate your account....." and not to my login page.
>
> I feel that it's due to session data. Do i need to invalidate the  
> session
> after registration is over? If so, how will i do it.
>
> How can i make my login page to appear upon clicking the portal url?

First, make sure that your mail server is configured in  
administration.xml:

   <bean id="mailSender"  
class="org.springframework.mail.javamail.JavaMailSenderImpl">
     <property name="host"><value>localhost</value></property>
     <property name="username"><value></value></property>
     <property name="password"><value></value></property>
       <property name="javaMailProperties">
           <props>
               <prop key="mail.smtp.auth">false</prop>
           </props>
       </property>

There is an init parameter for the UserRegistrationPortlet for the  
return URL:

     <init-param>
         <description>This parameter sets the url to which folks will  
return after they receive an email</description>
         <name>returnURL</name>
         <!-- the current system simply return the user to the default  
page where this portlet provides feedback -->
         <value>/</value>
     </init-param>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org