Foren

Change flow of create account / registration process

thumbnail
Anand Abhyankar, geändert vor 14 Jahren.

Change flow of create account / registration process

Junior Member Beiträge: 57 Beitrittsdatum: 26.03.08 Neueste Beiträge
Hello,

How can we change the flow of registration / create account process?
By default, when a user registers with the portal
1. System generated password sent through email.
2. User does login with the password from mail.
3. System forces the user to change password.

Now I want to change this process as :-
1. User registers on portal with his own password, the account is not activated but only created.
2. A mail is sent to user with a link to activate his account on the portal.
3. When user click on the link in mail, and does login to portal with his own pre-entered password, the account is activated.

How to achieve this?
Is there any way to configure this in Liferay?
If we need to customize this, then can anyone please guide me with some steps?

Thanks
thumbnail
Lisa Simpson, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
*BUMP*
thumbnail
Anand Abhyankar, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

Junior Member Beiträge: 57 Beitrittsdatum: 26.03.08 Neueste Beiträge
Let me rephrase my point....

Current Liferay Create Account / Registration Flow
1. Fill Form
2. Auto generated password get send through mail
3. Login with this auto-generated password which should be taken from mail.
4. Change password after login.

Alternative Flow
1. Fill form along with user's own password
2. Account is created in Liferay but not activated.
3. Mail send to user with a link, the link will be used only once.
4. When user clicks on the link, he/she is directed to portal/personal/community home page
5. Account is activated.

This 2nd flow is similar to the registration flow for most of the sites like linkedin.com, facebook.com etc.

How to achieve this 2nd flow of registration ?

I hope my question is clear now!

Thanks in advance.
thumbnail
Olaf Kock, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
I'd recommend to create your own sign-up portlet, using the existing one as documentation on how to access the user api.
thumbnail
Auditya manikanta Vadrevu, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

Liferay Master Beiträge: 621 Beitrittsdatum: 06.05.08 Neueste Beiträge
hi anand,

recently done similar kind of thing (but not the link feature). Creating a new signup would be a better idea.

1. check the addUser method you can pass your entered password .
2. you must modify the actual addUser method (not all but just not setting active while creating, user.setActive(false))
3. For one time link active feature , you can achieve it with many ways. one way i got when i thought of it is just using a custom attribute add a unique id to it while adding and send same in url as paramter in email. After clicking it activate and change id so that again it can never identify it.


with regards,
V.Auditya
thumbnail
Anand Abhyankar, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

Junior Member Beiträge: 57 Beitrittsdatum: 26.03.08 Neueste Beiträge
Hi,

Thanks for your comments....

I am now able to create user with user-defined password at the registration time itself.
I am also able to de-activate the user after registration.

Now, the user need to be activated by clicking the link in the mail.
Currently I am working on this part of the issue.

Further comments are welcome......

Thanks
Ana Belmonte, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

New Member Beitrag: 1 Beitrittsdatum: 24.02.10 Neueste Beiträge
Hello,
I need to do the same process that you describe. Can you explain me the changes or new portlets that you have done for this requirement?

Can you describe the changes to make, please? Also for activate the user by clicking the link in the mail.


Thanks.
Jason Renschler, geändert vor 14 Jahren.

RE: Change flow of create account / registration process

New Member Beitrag: 1 Beitrittsdatum: 06.04.10 Neueste Beiträge
Hi Anand,

Did you have any luck with getting this piece worked out?

Anand Abhyankar:

Now, the user need to be activated by clicking the link in the mail.
Currently I am working on this part of the issue.


Any guidance would be much appreciated. I'm thinking of using the hooks plug-in to override the addUser method in com.liferay.portlet.login.action.CreateAccountAction and assigning a unique registration key to the user in the addUser method. I don't know if this is the right path to take. If it is I then need to figure out how to email the user the registration link with unique id and then process that URL action.

Thanks!