Merge branch 'stable-2.15' into stable-2.16
* stable-2.15: Set version to 2.15.17-SNAPSHOT Set version to 2.15.16 Revert "CreateAccount: Fail early when invalid SSH key is given" tools/eclipse/project.py: Fix typo of bazelisk Migrate from old-style legacy .java provider to the new JavaInfo. Support bazelisk or bazel in tools/eclipse/project.py Rework imports in project.py Update project.py to use argparse Change-Id: If9388140c516f8ff2f5275eefe6cf65dad42449e
This commit is contained in:
@@ -131,16 +131,6 @@ public class CreateAccount
|
||||
}
|
||||
|
||||
extIds.add(ExternalId.createUsername(username, accountId, input.httpPassword));
|
||||
|
||||
if (input.sshKey != null) {
|
||||
try {
|
||||
authorizedKeys.addKey(accountId, input.sshKey);
|
||||
sshKeyCache.evict(username);
|
||||
} catch (InvalidSshKeyException e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
for (AccountExternalIdCreator c : externalIdCreators) {
|
||||
extIds.addAll(c.create(accountId, username, input.email));
|
||||
}
|
||||
@@ -173,6 +163,15 @@ public class CreateAccount
|
||||
}
|
||||
}
|
||||
|
||||
if (input.sshKey != null) {
|
||||
try {
|
||||
authorizedKeys.addKey(accountId, input.sshKey);
|
||||
sshKeyCache.evict(username);
|
||||
} catch (InvalidSshKeyException e) {
|
||||
throw new BadRequestException(e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
AccountLoader loader = infoLoader.create(true);
|
||||
AccountInfo info = loader.get(accountId);
|
||||
loader.fill();
|
||||
|
||||
Reference in New Issue
Block a user