i have a site where this was working fine, but now when users are presented witih protected content, it says they are logged in as [blank] and presented with the logout button... when the logout button is clicked, it basically just takes them to the login page... which is great... however, it still says they are logged in as blank...
Hm, not sure, it's a very simple script, basically just using standard membership functions. Did it stop working at the same time as something else was installed/changed?
Also - can you run ?umbdebugshowtrace=1 on the page and see if it says something on AUTH_USER or LOGON_USER ?
okay, so with the AWESOME help of Richard Soeteman [@rsoeteman on twitter send him a #H5YR] he pointed out that there could be an issue with a member NOT having an login name... still trying to figure out how that happened, but INDEED it DID happen...
Richard provided me with an update to the razor login script and said it was perfectly fine for me to share... so here it is...
login form stopped showing up?
i have a site where this was working fine, but now when users are presented witih protected content, it says they are logged in as [blank] and presented with the logout button... when the logout button is clicked, it basically just takes them to the login page... which is great... however, it still says they are logged in as blank...
any thoughts???
thanks,
Hi Bob
Hm, not sure, it's a very simple script, basically just using standard membership functions. Did it stop working at the same time as something else was installed/changed?
Also - can you run ?umbdebugshowtrace=1 on the page and see if it says something on AUTH_USER or LOGON_USER ?
both those values show as blank?
wierd... i will keep digging.
okay, so with the AWESOME help of Richard Soeteman [@rsoeteman on twitter send him a #H5YR] he pointed out that there could be an issue with a member NOT having an login name... still trying to figure out how that happened, but INDEED it DID happen...
Richard provided me with an update to the razor login script and said it was perfectly fine for me to share... so here it is...
@message
+1 for the HttpContext.Current.User.Identity.IsAuthenticated, I'll replace and update the package (some other code style tweaks too).
#h5yr to @rsoeteman :)
But wait - did the blank username make the user to be automatically logged in? That's strange.
it apparently made some 'member' logged in.... but you could not log them out... basically put authentication in a death loop...
is working on a reply...