This commit is contained in:
jeena 2013-04-22 12:37:51 +02:00
parent 58366ccd53
commit 39c938b29b

View file

@ -47,9 +47,15 @@ function(HostApp, Paths, Hmac) {
var entity = HostApp.stringForKey("entity");
if (entity && (entity.startsWith("http://") || entity.startsWith("https://"))) {
this.entity = entity;
this.requestProfileURL(this.entity);
if (entity && entity.startsWith("http")) {
if((entity.startsWith("http://") || entity.startsWith("https://"))) {
this.entity = entity;
this.requestProfileURL(this.entity);
} else {
this.entity = "https://" + entity;
HostApp.setStringForKey(this.entity, "entity");
this.requestProfileURL(this.entity);
}
} else {
HostApp.authentificationDidNotSucceed("The entity should start with https:// or http://");
}