From 8735451afff3a461e632d7c4c423b7062dc77d6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 Nov 2016 20:28:38 +0100 Subject: [PATCH] Client: add message if the admin wants to make friends without https --- .../app/admin/friends/friend-add/friend-add.component.html | 4 ++++ .../src/app/admin/friends/friend-add/friend-add.component.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.html b/client/src/app/admin/friends/friend-add/friend-add.component.html index 621822860..eebe033f9 100644 --- a/client/src/app/admin/friends/friend-add/friend-add.component.html +++ b/client/src/app/admin/friends/friend-add/friend-add.component.html @@ -22,5 +22,9 @@ +
+ It seems that you are not on a HTTPS pod. Your webserver need to have TLS activated in order to make friends. +
+ diff --git a/client/src/app/admin/friends/friend-add/friend-add.component.ts b/client/src/app/admin/friends/friend-add/friend-add.component.ts index 86b018de2..14f24c192 100644 --- a/client/src/app/admin/friends/friend-add/friend-add.component.ts +++ b/client/src/app/admin/friends/friend-add/friend-add.component.ts @@ -27,6 +27,10 @@ export class FriendAddComponent implements OnInit { this.hosts.push(''); } + canMakeFriends() { + return window.location.protocol === 'https://'; + } + customTrackBy(index: number, obj: any): any { return index; } -- 2.41.0