diff --git a/src/app/+login-page/login-page.component.html b/src/app/+login-page/login-page.component.html
index 76f4e68ef1..8ff87748ca 100644
--- a/src/app/+login-page/login-page.component.html
+++ b/src/app/+login-page/login-page.component.html
@@ -1,5 +1,9 @@
-
-

-
{{"login.form.header" | translate}}
-
+
+
+
+

+
{{"login.form.header" | translate}}
+
+
+
diff --git a/src/app/+login-page/login-page.component.scss b/src/app/+login-page/login-page.component.scss
index e69de29bb2..38adf24671 100644
--- a/src/app/+login-page/login-page.component.scss
+++ b/src/app/+login-page/login-page.component.scss
@@ -0,0 +1,6 @@
+@import '../../styles/variables.scss';
+
+.login-logo {
+ height: $login-logo-height;
+ width: $login-logo-width;
+}
diff --git a/src/app/core/auth/auth.service.ts b/src/app/core/auth/auth.service.ts
index cd48d67ee8..58e80713e2 100644
--- a/src/app/core/auth/auth.service.ts
+++ b/src/app/core/auth/auth.service.ts
@@ -135,6 +135,7 @@ export class AuthService {
*/
public checkAuthenticationToken(): Observable
{
return this.store.select(getAuthenticationToken)
+ .take(1)
.map((authTokenInfo: AuthTokenInfo) => {
let token: AuthTokenInfo;
// Retrieve authentication token info and check if is valid
diff --git a/src/app/shared/auth-nav-menu/auth-nav-menu.component.html b/src/app/shared/auth-nav-menu/auth-nav-menu.component.html
index e66e75be4c..7e60b789dd 100644
--- a/src/app/shared/auth-nav-menu/auth-nav-menu.component.html
+++ b/src/app/shared/auth-nav-menu/auth-nav-menu.component.html
@@ -2,7 +2,7 @@
{{ 'nav.login' | translate }}
-
diff --git a/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts b/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
index 3becbdbd91..c3246438c8 100644
--- a/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
+++ b/src/app/shared/auth-nav-menu/auth-nav-menu.component.ts
@@ -7,7 +7,7 @@ import { fadeInOut, fadeOut } from '../animations/fade';
import { HostWindowService } from '../host-window.service';
import { AppState, routerStateSelector } from '../../app.reducer';
import { hasValue, isNotUndefined } from '../empty.util';
-import { getAuthenticatedUser, isAuthenticated } from '../../core/auth/selectors';
+import { getAuthenticatedUser, isAuthenticated, isAuthenticationLoading } from '../../core/auth/selectors';
import { Subscription } from 'rxjs/Subscription';
import { Eperson } from '../../core/eperson/models/eperson.model';
@@ -24,6 +24,12 @@ export class AuthNavMenuComponent implements OnDestroy, OnInit {
*/
public isAuthenticated: Observable
;
+ /**
+ * True if the authentication is loading.
+ * @type {boolean}
+ */
+ public loading: Observable;
+
public showAuth = false;
public user: Observable;
@@ -35,9 +41,12 @@ export class AuthNavMenuComponent implements OnDestroy, OnInit {
}
ngOnInit(): void {
- // set loading
+ // set isAuthenticated
this.isAuthenticated = this.store.select(isAuthenticated);
+ // set loading
+ this.loading = this.store.select(isAuthenticationLoading);
+
this.user = this.store.select(getAuthenticatedUser);
this.subs.push(this.store.select(routerStateSelector)
diff --git a/src/app/shared/log-in/log-in.component.html b/src/app/shared/log-in/log-in.component.html
index 0fe6c280de..bcb6b49c9e 100644
--- a/src/app/shared/log-in/log-in.component.html
+++ b/src/app/shared/log-in/log-in.component.html
@@ -4,7 +4,7 @@
{{"login.form.password" | translate}}