diff --git a/.gitignore b/.gitignore
index f6f5791..3bd7c59 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,4 +12,6 @@ backend/**/*.js.map
common/**/*.js
common/**/*.js.map
test/coverage
-.coveralls.yml
\ No newline at end of file
+.coveralls.yml
+demo/TEMP/
+config.json
diff --git a/backend/server.ts b/backend/server.ts
index b6e7b91..6869ac6 100644
--- a/backend/server.ts
+++ b/backend/server.ts
@@ -40,7 +40,7 @@ export class Server {
name:"pigallery2-session",
secret: 'PiGallery2 secret',
cookie: {
- maxAge: 60000,
+ maxAge: 60000*10,
httpOnly: false
},
resave: true,
diff --git a/common/entities/LoginCredential.ts b/common/entities/LoginCredential.ts
index 5866a74..04e2db4 100644
--- a/common/entities/LoginCredential.ts
+++ b/common/entities/LoginCredential.ts
@@ -1,5 +1,5 @@
export class LoginCredential{
- constructor(public username:string = null, public password:string = null){
+ constructor(public username:string = "", public password:string = ""){
}
}
\ No newline at end of file
diff --git a/demo/images/IMG_8824.jpg b/demo/images/IMG_8824.jpg
index a4ead3a..236f665 100644
Binary files a/demo/images/IMG_8824.jpg and b/demo/images/IMG_8824.jpg differ
diff --git a/frontend/app/app.component.ts b/frontend/app/app.component.ts
index 7f98e7a..1d5fadc 100644
--- a/frontend/app/app.component.ts
+++ b/frontend/app/app.component.ts
@@ -11,20 +11,21 @@ import {Router, Location} from "angular2/router";
import {HTTP_PROVIDERS} from "angular2/http";
import {UserService} from "./model/user.service";
import {GalleryService} from "./gallery/gallery.service";
-import {GeneratedUrl} from "angular2/src/router/rules/route_paths/route_path";
-
-
+import {MATERIAL_BROWSER_PROVIDERS} from "ng2-material/all";
+import {ViewportHelper} from "ng2-material/core/util/viewport";
+
@Component({
selector: 'pi-gallery2-app',
template: `