Skip to content

Commit ac09047

Browse files
committed
show domain on login page
1 parent a3f273d commit ac09047

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ module openflow {
405405
public username: string = "";
406406
public password: string = "";
407407
public message: string = "";
408+
public domain: string = "";
408409
public static $inject = [
409410
"$scope",
410411
"$location",
@@ -418,6 +419,7 @@ module openflow {
418419
public WebSocketClient: WebSocketClient
419420
) {
420421
console.log("LoginCtrl::constructor");
422+
this.domain = window.location.hostname;
421423
WebSocketClient.getJSON("/loginproviders", async (error: any, data: any) => {
422424
this.providers = data;
423425
for (var i: number = this.providers.length - 1; i >= 0; i--) {

OpenFlow/src/public/Login.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
44
<div class="card card-signin my-5">
55
<div class="card-body">
6-
<h5 class="card-title text-center" translate lib="web">signin</h5>
6+
<h5 class="card-title text-center"><span translate lib="web">signin</span> {{ctrl.domain}}</h5>
7+
</h5>
78
<form class="form-signin" ngNoForm method='post' action='/local'>
89
<div class="form-label-group" ng-show="ctrl.localenabled">
910
<input type="text" name="username" ng-model="ctrl.username" class="form-control" placeholder="Username"

0 commit comments

Comments
 (0)