YAFLogo

mfi
  • mfi
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
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.

Sponsor
mfi
  • mfi
  • 51.2% (Neutral)
  • YAF Forumling Topic Starter
13 years ago
hellooooooooooo?

Does anybody know the solution?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
13 years ago
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

// setup inital roles (if any) for this user
                RoleMembershipHelper.SetupUserRoles(YafContext.Current.PageBoardID, username);