diff --git a/postrify-backend/src/main/resources/application.properties b/postrify-backend/src/main/resources/application.properties index 3f29d19..cec5469 100644 --- a/postrify-backend/src/main/resources/application.properties +++ b/postrify-backend/src/main/resources/application.properties @@ -4,5 +4,5 @@ spring.datasource.username=postgres spring.datasource.password=postgres spring.jpa.hibernate.ddl-auto=update app.jwtSecret=YourJwtSecretKey -app.jwtExpirationInMs=2592000000 +app.jwtExpirationInMs=604800000 spring.jpa.open-in-view=false diff --git a/postrify-frontend/src/app/components/post-form/post-form.component.ts b/postrify-frontend/src/app/components/post-form/post-form.component.ts index c891e52..8293cbd 100644 --- a/postrify-frontend/src/app/components/post-form/post-form.component.ts +++ b/postrify-frontend/src/app/components/post-form/post-form.component.ts @@ -1,4 +1,4 @@ -import { Component } from '@angular/core'; +import { Component, OnInit } from '@angular/core'; import { Post } from '../../models/post.model'; import { Router } from '@angular/router'; import { PostService } from '../../services/post.service'; @@ -24,6 +24,7 @@ import { ToastService } from '../../services/toast.service'; minlength="3" maxlength="30" #titleInput="ngModel" + (ngModelChange)="saveFormState()" />