added security and fix edit profile

This commit is contained in:
SlimusMinus
2026-06-18 00:22:50 +03:00
parent 81e3e007e1
commit bafb636cbe
24 changed files with 418 additions and 56 deletions

View File

@@ -33,4 +33,8 @@ file:
upload-dir: uploads/
cache:
ttl: 300
ttl: 300
jwt:
secret: mySuperSecretKeyForJwtTokenGenerationThatIsLongEnough2024!ReFound
expiration: 86400000 # 24 hours in milliseconds

View 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) }

View File

@@ -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) }

View File

@@ -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 }