YAFLogo

ollie10
  • ollie10
  • 50.6% (Neutral)
  • YAF Forumling Topic Starter
15 years ago
Hi, i'm an italian developer, i'm addicted of yaf forum since the first release, i'm making a community using the forum as base and the website is constructed around the forum. I'm working on this from early 2008 and when i begin i started with the version 1.9.1.6, now I discover that there is this new version and I chose to change my version with this new one!

I need some basic information to integrate the website with the form so the first information I need is how users can login. I had a rapid search in the solution and I find only the

user_login( object boardID, object name, object password ) method in DB.cs

There is someone can help me to understand how users can login from a form outside the forum pages? Overall wich function to call, wich parameters to pass and in wich format pass the password, in the past release i used

string passWord = FormsAuthentication.HashPasswordForStoringInConfigFile(password.Text, "md5");

Thanks a lot in advance for your important help

ollie10

Sponsor
Mek
  • Mek
  • 100% (Exalted)
  • YAF Developer
15 years ago
Much much easier with the new version.

All you need in your app is to have the membership, role and profile provider settings and use the asp.net 2.0 LoginView control which will supply you with your username/password box.

The YAF 1.93 Providers allow for both the same password hsahing you mentioned or one that hashes with salt. The setting for hash methods is set in the web.configs and you can see the differences if you compared the recommended and 191upgrade webconfigs which are located in the webconfigs folder of 1.93.

The membership provider will take care of the hashing. If your not familiar with the providers introduced in asp.net 2.0; a little googling will sort you out quick smart.


UserPostedImage

"It's a case of RTFM.. the only problem being we don't have a manual!"

When I post FP:Mek in a topic, I'm leaving my footprint there so I can track it once I get into coding/supporting. (Yes I stole this off Ederon 🙂 )