• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

need to create this activation key based approach for user registration

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I needed to create this activation key based approach for user registration, that a user gets registered only when he:
1. fills the user creation form in application.
2. gets an email with an activation link
3. goes to the link to activate account

I noticed an entry in user POJO called activationKey. There's also a a method activateAccount in UserAction.

Any relations between the two? Any suggestions on how can i implement the new functionality resuing some stuff in here
[originally posted on jforum.net by vikram.arora.in]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is already implemented. Just enable it at Admin Panel -> Configurations -> Mail -> Requires user to authenticate email

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Rafael !! u r the best!
[originally posted on jforum.net by vikram.arora.in]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Requires user to authenticate email enabled.
But the user can befor he activate his acount post.
I use the version 2.1.6

can sombody help me
[originally posted on jforum.net by JK]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the post being done as the Anonymous user or the unactivated user? E.g., what id shows up on the posting.

If it's anonymous, you need to remove the anonymous user from the General group and add it to a (probably new) group that can't post.

If the un-authenticated user is showing up, then it may be a configuration issue or bug. And more details will be needed.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The un-authenticated user is showing up.
But I have create the user for testing the email authentication and so the user has the same ip as an authenticated user.
Is that a problem?
[originally posted on jforum.net by JK]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is anything wrong in this settings for the user authentication?


[originally posted on jforum.net by JK]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!