File: disable-email-verify.patch

package info (click to toggle)
atuin 18.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,588 kB
  • sloc: sh: 270; sql: 250; makefile: 14
file content (31 lines) | stat: -rw-r--r-- 1,345 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Description: Disable email sending, thus account verification functionality
 It currently hardcodes a dependency for the postmark provider.
 Disabled by default anyway, without item in config template.
Forwarded: not-needed
Last-Update: 2024-12-29
--- a/crates/atuin-server/src/handlers/user.rs
+++ b/crates/atuin-server/src/handlers/user.rs
@@ -16 +16 @@
-use postmark::{Query, reqwest::PostmarkClient};
+//use postmark::{Query, reqwest::PostmarkClient};
@@ -182 +182 @@
-pub async fn send_verification<DB: Database>(
+#[cfg(any())] pub async fn send_verification<DB: Database>(
--- a/crates/atuin-server/src/router.rs
+++ b/crates/atuin-server/src/router.rs
@@ -130,5 +130,5 @@
-        .route("/api/v0/account/verify", post(handlers::user::verify_user))
-        .route(
-            "/api/v0/account/send-verification",
-            post(handlers::user::send_verification),
-        )
+        //.route("/api/v0/account/verify", post(handlers::user::verify_user))
+        //.route(
+        //    "/api/v0/account/send-verification",
+        //    post(handlers::user::send_verification),
+        //)
--- a/crates/atuin-server/Cargo.toml
+++ b/crates/atuin-server/Cargo.toml
@@ -37 +37 @@
-postmark = {version= "0.11", features=["reqwest", "reqwest-rustls-tls"]}
+#postmark = {version= "0.11", features=["reqwest", "reqwest-rustls-tls"]}