added security and fix edit profile
This commit is contained in:
@@ -33,4 +33,8 @@ file:
|
||||
upload-dir: uploads/
|
||||
|
||||
cache:
|
||||
ttl: 300
|
||||
ttl: 300
|
||||
|
||||
jwt:
|
||||
secret: mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound
|
||||
expiration: 86400000 # 24 hours in milliseconds
|
||||
10
src/main/resources/db/changelog/add/004-add-fields-user.yaml
Normal file
10
src/main/resources/db/changelog/add/004-add-fields-user.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 004-add-lastName-phone
|
||||
author: you
|
||||
changes:
|
||||
- addColumn:
|
||||
tableName: users
|
||||
columns:
|
||||
- column: { name: last_name, type: VARCHAR(255) }
|
||||
- column: { name: phone, type: VARCHAR(255) }
|
||||
@@ -0,0 +1,9 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 005-add-user-avatarUrl
|
||||
author: you
|
||||
changes:
|
||||
- addColumn:
|
||||
tableName: users
|
||||
columns:
|
||||
- column: { name: avatar_url, type: VARCHAR(255) }
|
||||
@@ -11,4 +11,6 @@ databaseChangeLog:
|
||||
- include: { file: db/changelog/alter/010-alter-user.yaml }
|
||||
- include: { file: db/changelog/add/011-add-name-user.yaml }
|
||||
- include: { file: db/changelog/add/012-add-email-role.yaml }
|
||||
- include: { file: db/changelog/add/003-add-phone-posts.yaml }
|
||||
- include: { file: db/changelog/add/003-add-phone-posts.yaml }
|
||||
- include: { file: db/changelog/add/004-add-fields-user.yaml }
|
||||
- include: { file: db/changelog/add/005-add-user-avatarUrl.yaml }
|
||||
Reference in New Issue
Block a user