diff options
Diffstat (limited to 'src/handlers/users.rs')
-rw-r--r-- | src/handlers/users.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/handlers/users.rs b/src/handlers/users.rs index 73fca84..24fb591 100644 --- a/src/handlers/users.rs +++ b/src/handlers/users.rs | |||
@@ -13,6 +13,7 @@ pub async fn new_user( | |||
13 | pool: web::Data<TPool>, | 13 | pool: web::Data<TPool>, |
14 | item: web::Json<NewCustomer>, | 14 | item: web::Json<NewCustomer>, |
15 | ) -> impl Responder { | 15 | ) -> impl Responder { |
16 | info!("Creating ... {:?}", item.username); | ||
16 | let conn = pool.get().unwrap(); | 17 | let conn = pool.get().unwrap(); |
17 | let hashed_item = NewCustomer { | 18 | let hashed_item = NewCustomer { |
18 | password: hash(&item.password, DEFAULT_COST).unwrap(), | 19 | password: hash(&item.password, DEFAULT_COST).unwrap(), |