Fix for ALF-10823 - "allowGuestLogin=false" and Share then fills the alfresco error log with "Guest authentication not supported"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32820 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2011-12-16 15:27:14 +00:00
parent ea47379a29
commit 9b458b3655
4 changed files with 5 additions and 3 deletions

View File

@@ -168,7 +168,7 @@ public class AuthenticationServiceImpl extends AbstractAuthenticationService imp
String defaultGuestName = AuthenticationUtil.getGuestUserName();
if (defaultGuestName == null || defaultGuestName.length() == 0)
{
throw new AuthenticationException("Guest authentication not supported");
throw new AuthenticationException(GUEST_AUTHENTICATION_NOT_SUPPORTED);
}
preAuthenticationCheck(defaultGuestName);
authenticationComponent.setGuestUserAsCurrentUser();