- mail/ module (lettre, ru/en templates), links built only from PUBLIC_BASE_URL - migration 0006: accounts.email_verified_at, shared email_tokens table (verify + reset), existing accounts marked verified - reset mailer no longer logs tokens; RESET_MAIL_MODE=log is dev-only and refused with COOKIE_SECURE=true; Disabled by default answers 503 - forgot-password and resend-verification do their work in a background task (no timing oracle) - device linking requires a verified email; email_verified exposed via /me and gRPC - gateway rate limits, SMTP_* in compose and .env.example - frontend: verify, forgot-password, reset-password pages, verify banner, ru/en strings
41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[package]
|
|
name = "accounts-service"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
name = "accounts_service"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8", features = ["multipart", "macros"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "sync"] }
|
|
tower-http = { version = "0.7", features = ["trace", "cors"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
sqlx = { version = "0.9", default-features = false, features = ["runtime-tokio", "tls-rustls", "postgres", "uuid", "chrono", "macros", "migrate"] }
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
argon2 = "0.6"
|
|
axum-extra = { version = "0.12", features = ["cookie"] }
|
|
time = "0.3"
|
|
sha2 = "0.11"
|
|
hex = "0.4"
|
|
base64 = "0.22"
|
|
common = { path = "../common" }
|
|
rand = "0.10"
|
|
dashmap = "6"
|
|
aws-sdk-s3 = "1"
|
|
aws-config = "1"
|
|
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "webp"] }
|
|
anyhow = "1"
|
|
dotenvy = "0.15"
|
|
tonic = "0.14"
|
|
lettre = { version = "0.11", default-features = false, features = ["builder", "smtp-transport", "tokio1", "tokio1-rustls-tls"] }
|
|
|
|
[dev-dependencies]
|
|
axum-test = "21"
|
|
aws-sdk-s3 = "1"
|
|
tokio-stream = { version = "0.1", features = ["net"] }
|