]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/user/delete.rs
Moving settings and secrets to context.
[lemmy.git] / crates / api_crud / src / user / delete.rs
index fb9480dc7e74052871cf892b4f55c1b9998a4603..24f3c4003f07d6ad106f3e8cbf594010bf061c52 100644 (file)
@@ -17,7 +17,8 @@ impl PerformCrud for DeleteAccount {
     _websocket_id: Option<ConnectionId>,
   ) -> Result<LoginResponse, LemmyError> {
     let data: &DeleteAccount = self;
-    let local_user_view = get_local_user_view_from_jwt(&data.auth, context.pool()).await?;
+    let local_user_view =
+      get_local_user_view_from_jwt(&data.auth, context.pool(), context.secret()).await?;
 
     // Verify the password
     let valid: bool = verify(