diff options
author | James Moger <james.moger@gitblit.com> | 2013-06-17 15:50:04 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-06-17 15:50:04 -0400 |
commit | de3474a1ddd9201dec8246d7fd81e240b98bb6a5 (patch) | |
tree | 7fd9d767dfea4feb23a36d9edaea2143fbe56409 /src/main/java/com/gitblit/GitblitUserService.java | |
parent | 6243f34ba694c384d7fd7d8b87f59742b013241b (diff) | |
download | gitblit-de3474a1ddd9201dec8246d7fd81e240b98bb6a5.tar.gz gitblit-de3474a1ddd9201dec8246d7fd81e240b98bb6a5.zip |
Moved #externalAccount string to common constants class
Diffstat (limited to 'src/main/java/com/gitblit/GitblitUserService.java')
-rw-r--r-- | src/main/java/com/gitblit/GitblitUserService.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/GitblitUserService.java b/src/main/java/com/gitblit/GitblitUserService.java index fe35db94..658404b5 100644 --- a/src/main/java/com/gitblit/GitblitUserService.java +++ b/src/main/java/com/gitblit/GitblitUserService.java @@ -52,8 +52,6 @@ public class GitblitUserService implements IUserService { protected IUserService serviceImpl;
- protected final String ExternalAccount = "#externalAccount";
-
private final Logger logger = LoggerFactory.getLogger(GitblitUserService.class);
public GitblitUserService() {
@@ -324,7 +322,7 @@ public class GitblitUserService implements IUserService { protected void setAccountType(UserModel user) {
if (user != null) {
if (!StringUtils.isEmpty(user.password)
- && !ExternalAccount.equalsIgnoreCase(user.password)
+ && !Constants.EXTERNAL_ACCOUNT.equalsIgnoreCase(user.password)
&& !"StoredInLDAP".equalsIgnoreCase(user.password)) {
user.accountType = AccountType.LOCAL;
} else {
|