I have an asp.net web-from application which uses ASP.NET membership provider . Beside this I have yet another forum website in sub-domain. I would like when user register in my site , it automatically register in forum , too . By another word when user register in my site , it can use that credential for loging-in to forum as well .
So , when ever a user register in my site , I add a record in yaf_User table too . But the problem is although there is a password field at yaf_User , YAF Doesn't save password at that field . I don't know where does YAF saves passwords ?
A better and easier solution would be to use the same membership provider for both the web application and the forum (which I assume is also using the membership provider). Since you want the same username for both the app and the forum, why not just use the same user database?
As for the password, default it is encrypted and not clear text. Check the enablePasswordRetrieval
of your provider setting in web.config.
In web.config for both apps set the domain attribute to the top level domain:
<authentication mode="Forms">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" domain="toplevel.com" />
</authentication>
This ensures that if you log in on either the app or the forum, you will automatically be logged in to the other as well.