-3
migrations_bells_and_whistles/.keep
-3
migrations_bells_and_whistles/.keep
+1
Cargo.lock
+1
Cargo.lock
+1
Cargo.toml
+1
Cargo.toml
+27
-32
src/xrpc/helpers.rs
+27
-32
src/xrpc/helpers.rs
······························-.body(format!("We received a sign-in request for the account @{}. Use the code: {} to sign in. If this wasn't you, we recommend taking steps to protect your account by changing your password at https://bsky.app/settings.", handle, code)), // Every message should have a plain text fallback.······
···························+log::error!("There was an error deleting the email tokens after login: {:?}", result_of_cleanup.err())···+.body(format!("We received a sign-in request for the account @{handle}. Use the code: {code} to sign in. If this wasn't you, we recommend taking steps to protect your account by changing your password at https://bsky.app/settings.")), // Every message should have a plain text fallback.······
+8
-4
src/middleware.rs
+8
-4
src/middleware.rs
······-None => json_error_response(StatusCode::BAD_REQUEST, "TokenRequired", "").expect("Error creating an error response"),···-let key = Hs256Key::new(env::var("PDS_JWT_SECRET").expect("PDS_JWT_SECRET not set in the pds.env"));···-json_error_response(StatusCode::BAD_REQUEST, "InvalidToken", "").expect("Error creating an error response")
············
-1
src/xrpc/mod.rs
-1
src/xrpc/mod.rs
+10
-2
src/main.rs
+10
-2
src/main.rs
···
···
+5
-6
README.md
+5
-6
README.md
···-- [x] send an email using the `PDS_EMAIL_SMTP_URL` with a handlebar email template like Bluesky's 2FA sign in email.-- [ ] createSession gatekeeping (It does stop logins, just eh, doesn't actually send a real code or check it yet)···Nothing here yet! If you are brave enough to try before full release, let me know and I'll help you set it up.···
···+- Overrides the settings endpoints as well. As long as you have a confirmed email you can turn on 2FA···Nothing here yet! If you are brave enough to try before full release, let me know and I'll help you set it up.···
-1
src/helpers.rs
-1
src/helpers.rs