fixed check for existing Igtimi account

Change-Id: I9fe5fc8d40db27a2b71de5664b5f65233b3a11e9
This commit is contained in:
Axel Uhl committed 2018-09-25 12:57:59 +02:00
1 parent e0e68240ac
commit 0411089abc
2 files changed
+1 -3

No files matched your search

@@ -5757,7 +5757,7 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
public boolean authorizeAccessToIgtimiUser(String eMailAddress, String password) throws Exception {
final Account existingAccount = getIgtimiConnectionFactory().getExistingAccountByEmail(eMailAddress);
final Account account;
if (existingAccount != null) {
if (existingAccount == null) {
final QualifiedObjectIdentifier igtimiAccountId = SecuredDomainType.IGTIMI_ACCOUNT.getQualifiedObjectIdentifier(eMailAddress);
getSecurityService().setOwnership(getSecurityService().createDefaultOwnershipForNewObject(igtimiAccountId));
try {
@@ -25,9 +25,7 @@ public class WindPanelPO extends PageArea {
public void importWindFromIgtimi(int timeoutInSeconds) throws InterruptedException {
importWindFromIgtimi.click();
waitForAlertAndAccept(10);
FluentWait<String> wait = createFluentWait("The following number of fixes were imported for the listed races:", timeoutInSeconds, DEFAULT_POLLING_INTERVAL);
wait.until(new Function<String, Object>() {
@Override