jessica2012
2012-02-22T01:43:31Z
I installed the YAF 1.9.55. I can only get to the page as a Guest with the message "Welcome Guest! To enable all features please Login or Register. ". After I click on the Login and login as the Administrator, the login control doesn't seem to work since it still show the same mesage as to the Guest. I can not get to the Administration page.

I was guessing the roleManager is not working. I have checked my web.config and think I have added the Yaf providers in the web.config file.

May someone help me out? How can I get the login control and the Administration page work?

Thank you very much!
Jessica
Sponsor
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2012-02-22T05:33:23Z
This reminds me devs: we need an optional "admin password" in the web.config. It would make life easier for everyone.
jessica2012
2012-02-22T15:59:51Z
Hi, Jaben,

Thanks for your reply.Do you mean to add an optional "admin password" in web.config for future in the YAF development?
May you give me some hints or help how to resolve my issue? Or do you mean I missing setting the admin password somewhere?

Thank you very much!
Jessica

Originally Posted by: Jaben 

This reminds me devs: we need an optional "admin password" in the web.config. It would make life easier for everyone.


jessica2012
2012-02-23T02:10:51Z
By the way, I used MS SQL Server database, the connection test is fine and the DB was created in the installation. I can see the users were added into the database when I registered a new user.


The following is the YAF provider part in my web.config. I tried both the "SHA1" and "MD5" one, neither work.

<roleManager enabled="true" defaultProvider="YafRoleProvider">
<providers>
<clear />
<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafRoleProvider" type="YAF.Providers.Roles.YafRoleProvider" />
</providers>
</roleManager>
<!-- Commented out: <membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
<providers>
<clear />
<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafMembershipProvider" requiresUniqueEmail="false" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider" />
</providers>
</membership> -->
<membership defaultProvider="YafMembershipProvider" hashAlgorithmType="MD5">
<providers>
<clear/>
<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafMembershipProvider" requiresUniqueEmail="false" type="YAF.Providers.Membership.YafMembershipProvider" hashHex="true" hashCase="upper" />
</providers>
</membership>
<profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Utils.YafUserProfile">
<providers>
<clear />
<add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider" />
</providers>
</profile>

What am I missing here? Your help is appreciated!

Thanks,
Jessica

Originally Posted by: jessica2012 

I installed the YAF 1.9.55. I can only get to the page as a Guest with the message "Welcome Guest! To enable all features please Login or Register. ". After I click on the Login and login as the Administrator, the login control doesn't seem to work since it still show the same mesage as to the Guest. I can not get to the Administration page.

I was guessing the roleManager is not working. I have checked my web.config and think I have added the Yaf providers in the web.config file.

May someone help me out? How can I get the login control and the Administration page work?

Thank you very much!
Jessica

tha_watcha
2012-02-23T02:50:48Z
Does the login work for other regular users? Did use the modal login box or the login page?

If you use the login box please try ther regular login page (yourdomain.com/yaf_login.aspx)
UserPostedImage
jessica2012
2012-02-24T01:46:18Z
Hi tha_watcha,

Thank you very much for your reply. The login box did show up, but no user could login though in the issue described in my original post. After I fixed some issues here and there, I have got the form login authentication working now. When I try to implement the windows and active directory authentication for login, it seems I need more work.
Do you have any reference to implement the windows and AD authentication for the YAF?

Appreciate all of your help!

Jessica

Originally Posted by: tha_watcha 

Does the login work for other regular users? Did use the modal login box or the login page?

If you use the login box please try ther regular login page (yourdomain.com/yaf_login.aspx)

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved