1

i have a MVC 3 project and want to integrate YAF forum inside of my project, but i dont know how to make a register page and login page (in MVC 3 project) that when i register an account, YAF create an user too, the same with login page, i just want user can register and login in my MVC project and then go to the YAF forum

Thanks and sry 4 my E :)

Hieu Nguyen Trung
  • 1,624
  • 5
  • 21
  • 32
  • YAF forum is a great project, but it should be easier to integrate your MVC site with a MVC forums, like Nearforums. Disclaimer: I'm a developer for the Nearforums project team. – jorgebg Jun 24 '11 at 08:08
  • Nice, just have a watch to Nearforums :), it's cool, keeps it up – Hieu Nguyen Trung Jun 25 '11 at 03:27

1 Answers1

0

The YAF.Providers.YafMembershipProvider module makes a call to dbo.yaf_prov_createuser stored procedure in the DB when creating users.

You can call that yourself to create a user. You'll be bypassing a few validation routines so you need to make sure the user info you pass in is unique (i.e. email and username).

Then all you're missing is to set yaf_prov_Membership.IsApproved = True once you've validated the email.

Todd Smith
  • 17,084
  • 11
  • 59
  • 78