Having trouble with Basic Membership umbraco 7.4.3
I used the basic scripts that come with umbraco.
Created a member etc.
Run the login on a page and it does not error.
But it does not seem to actually log me in.
So I popped this code under the login and it tells me Not Loggedin
@{ var loginStatusModel = Members.GetCurrentLoginStatus();}
@if (loginStatusModel.IsLoggedIn)
{
<p>You are currently logged in as @loginStatusModel.Name</p>
}else{
<p>Not Loggedin</p>}
In the logs it states.
2016-06-08 17:50:03,040 [P6424/D2/T11] INFO Umbraco.Core.Security.UmbracoMembershipProviderBase - Login attempt succeeded for username anewmember from IP address xx.xx.xx.xx
So it s in a sort of limbo where.. The following code
<p>STATUS MODEL | @loginStatusModel.IsLoggedIn </p>
<p>MEMBERS : @Members.IsLoggedIn() </p>
Thanks for this. I found the problem and it wasn't where I expected.
Pre live we put the site into Anonymous Authentication Disabled : Windows Authentication Enabled
Weird that we could still login to umbraco as a user once logged in via the NT password. But for some reason it messed about with the Members module. It also wrote the line Authentication Windows in the web config.
So whilst trouble shooting we changed the web config back to Forms and set the authentication modes in IIS to how it will be when live and everything works.
Having trouble with Basic Membership umbraco 7.4.3
I used the basic scripts that come with umbraco.
Created a member etc.
Run the login on a page and it does not error.
But it does not seem to actually log me in.
So I popped this code under the login and it tells me Not Loggedin
In the logs it states.
2016-06-08 17:50:03,040 [P6424/D2/T11] INFO Umbraco.Core.Security.UmbracoMembershipProviderBase - Login attempt succeeded for username anewmember from IP address xx.xx.xx.xx
So it s in a sort of limbo where.. The following code
Renders as
STATUS MODEL | False
MEMBERS : True
Hi,
I normally create an helper method for this. In-fact a have a full set of helper methods to help handle the membership.
To login....
Hope this helps.
Kind Regards
David
Thanks for this. I found the problem and it wasn't where I expected.
Pre live we put the site into Anonymous Authentication Disabled : Windows Authentication Enabled
Weird that we could still login to umbraco as a user once logged in via the NT password. But for some reason it messed about with the Members module. It also wrote the line Authentication Windows in the web config.
So whilst trouble shooting we changed the web config back to Forms and set the authentication modes in IIS to how it will be when live and everything works.
Thanks for your reply though.
Doogie
is working on a reply...