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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to