YAFLogo

Posted by: mfi - Thursday, 26 May 2011 17:57:07
I am facing a problem in yaf forum. I am registering the user in clear text password format using my own site by calling the two stored procedures (yaf_prov_createuser and yaf_user_save). User is registered successfully in yaf forum. But when user logged in to the forum, immediatley after his logged in his entry is removed from yaf_UserGroup table and error occurred "Failed to find guest user". Any idea how to resolve this issue? Thanks in advance.

Posted by: mfi - Monday, 30 May 2011 17:02:03
hellooooooooooo? Does anybody know the solution?

Posted by: tha_watcha - Tuesday, 31 May 2011 12:26:19
You need to assign the user to the roles (not guest role) that have the is start flag normally only the Registered Role. Via Code you could simply use [code=csharp]// setup inital roles (if any) for this user RoleMembershipHelper.SetupUserRoles(YafContext.Current.PageBoardID, username);[/code]