diff options
author | James Moger <james.moger@gitblit.com> | 2013-12-11 08:08:37 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-12-11 08:08:37 -0500 |
commit | 1293c279d1ab41ba7f4721009f87e89d4d48bf3d (patch) | |
tree | 9f3f3ef8c1bb3d8b3256e760e4aa93e0c0f2d5bb /src/main/java/com/gitblit/manager/AuthenticationManager.java | |
parent | d97ee9eb096c6d9f71b03e0dd326644ef9801389 (diff) | |
download | gitblit-1293c279d1ab41ba7f4721009f87e89d4d48bf3d.tar.gz gitblit-1293c279d1ab41ba7f4721009f87e89d4d48bf3d.zip |
Fix external authentication failure
Change-Id: I0f415941a4bfd5e63d85c60613cea0c7d10cbb49
Diffstat (limited to 'src/main/java/com/gitblit/manager/AuthenticationManager.java')
-rw-r--r-- | src/main/java/com/gitblit/manager/AuthenticationManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/manager/AuthenticationManager.java b/src/main/java/com/gitblit/manager/AuthenticationManager.java index 60687d44..eef675b2 100644 --- a/src/main/java/com/gitblit/manager/AuthenticationManager.java +++ b/src/main/java/com/gitblit/manager/AuthenticationManager.java @@ -323,9 +323,10 @@ public class AuthenticationManager implements IAuthenticationManager { return null; } - // try local authentication UserModel user = userManager.getUserModel(usernameDecoded); - if (user != null) { + + // try local authentication + if (user != null && user.isLocalAccount()) { UserModel returnedUser = null; if (user.password.startsWith(StringUtils.MD5_TYPE)) { // password digest |