YAFLogo

Posted by: ransems - Tuesday, 2 September 2014 15:45:49
I have a forum page (custom asp.net page) that sets a cookie if the query string passes a proper email and GUID for the user. So when the page gets hit and is validated to the DB all works well and I se the cookie: [quote] FormsAuthentication.SetAuthCookie([b]e[/b], True) Dim ticket As New FormsAuthenticationTicket(1, [b]e[/b], DateTime.Now, DateTime.Now.AddMinutes(30), False, "", "/" ) Dim strEncTicket As String = FormsAuthentication.Encrypt(ticket) Dim authCookie As New HttpCookie(".YAFNET_Authentication", strEncTicket) authCookie.Path = "/" [/quote] When I set [b]e[/b] as the email address of any user it does not work, go to the forum and they are not logged in. When I set [b]e[/b] to the host/super admin it works great. What's up? any thoughts? Anyone? RA

Posted by: ransems - Tuesday, 2 September 2014 16:21:58
I think I figured it our: there are two data tables: [list=1] [*]yaf_User [*]yaf_prov_Role [/list] I was not making the username change to the second one, so the user was always incorrect...not matching so they had no rights. Hmmm...funny.