+
+
+
+
diff --git a/src/app/components/main-navigation/main-navigation.component.sass b/src/app/components/main-navigation/main-navigation.component.sass
index 3e4e0eb..a4be210 100644
--- a/src/app/components/main-navigation/main-navigation.component.sass
+++ b/src/app/components/main-navigation/main-navigation.component.sass
@@ -26,6 +26,7 @@
.mat-tab-link
height: 56px
+
#link-box
padding: 0.5em
@@ -36,7 +37,8 @@
/deep/ .mat-tab-link
min-width: 5em!important
-
+#login-button
+
#menu-button-box
text-align: right
diff --git a/src/app/components/main-navigation/main-navigation.component.ts b/src/app/components/main-navigation/main-navigation.component.ts
index 43dc4d3..a001d54 100644
--- a/src/app/components/main-navigation/main-navigation.component.ts
+++ b/src/app/components/main-navigation/main-navigation.component.ts
@@ -59,8 +59,6 @@ export class MainNavigationComponent implements OnInit {
{ path: '', label: 'Home' },
{ path: '/about', label: 'About' },
{ path: '/imprint', label: 'Imprint' },
- { path: '/login', label: 'Login' },
- { path: '/register', label: 'Register' },
];
toggleTheme() {
diff --git a/src/app/components/register/register.component.ts b/src/app/components/register/register.component.ts
index e34a505..efdb425 100644
--- a/src/app/components/register/register.component.ts
+++ b/src/app/components/register/register.component.ts
@@ -32,8 +32,8 @@ export class RegisterComponent implements OnInit {
this.errorOccurred = false;
this.errorMessage = " ";
if(this.passwordSame(pPasswordHash,pPasswordHashRepeat)){
- this.registration.username = pUsername
- this.registration.email = pEmail
+ this.registration.username = pUsername.trim()
+ this.registration.email = pEmail.trim()
this.registration.passwordHash = sha512.sha512(pPasswordHash);
this.registerService.register(this.registration, error => this.registerError(error.json()));
}