Skip to content

Commit 0f0a034

Browse files
committed
what did I do here? I forgot..probably fixes
1 parent 6a3551f commit 0f0a034

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

app/crud.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,11 +522,10 @@ def cleanup_expired_tokens(db: Session):
522522
db.commit()
523523
return deleted
524524

525-
526525
# revoke all user tokens
527526
def revoke_all_user_tokens(db: Session, user_id: int, reason: str = "password_change"):
528527
"""Invalidate all tokens for a user by updating token_invalidated_at.
529-
528+
530529
Any token issued before this timestamp will be rejected by get_current_user().
531530
This is called on password change, password reset, and admin-forced logout.
532531
"""
@@ -538,7 +537,6 @@ def revoke_all_user_tokens(db: Session, user_id: int, reason: str = "password_ch
538537
db.commit()
539538

540539
from app.core.security import audit_log
541-
542540
audit_log(f"All tokens invalidated for user {user_id}. Reason: {reason}")
543541

544542

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
networks:
22
sono-net:
33
driver: bridge
4-
kworb-net:
5-
external: true
6-
name: sono-kworb_default
4+
#kworb-net:
5+
# external: true
6+
# name: sono-kworb_default
77

88
services:
99
db:
@@ -85,7 +85,7 @@ services:
8585
dockerfile: Dockerfile
8686
networks:
8787
- sono-net
88-
- kworb-net
88+
# - kworb-net
8989
ports:
9090
- "${API_PORT:-8000}:8000"
9191
environment:

minio-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ EOF
5555

5656
/usr/bin/mc admin policy create minio audio-files-policy /tmp/audio-policy.json
5757

58-
echo "Setting bucket policy to public read for profile pictures..."
58+
echo "Setting bucket policy to public read for profile pictures ONLY..."
5959
/usr/bin/mc anonymous set public minio/profile-pictures
6060

6161
echo "MinIO setup complete."

0 commit comments

Comments
 (0)