From ce62e3bac6a8acea555731d6222028c511dd9019 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 13 Sep 2022 14:49:15 +0200 Subject: Drop user creation --- src/models/user.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/models') diff --git a/src/models/user.rs b/src/models/user.rs index 55abc97..ba2df8f 100644 --- a/src/models/user.rs +++ b/src/models/user.rs @@ -28,14 +28,6 @@ pub struct UserList { is_staff: Option, } -/// Payload used for user creation -#[derive(Deserialize)] -pub struct UserCreate { - pub email: String, - pub username: String, - pub password: String, -} - impl User { /// By default an user has id = 0. It is not created yet pub fn new(email: String, username: String, password: String) -> Self { -- cgit v1.2.3-71-g8e6c