diff options
author | Akshay <[email protected]> | 2020-12-23 16:20:49 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-12-23 16:20:49 +0000 |
commit | 7c65421328552b08e64df25e224fe9d54d363e6e (patch) | |
tree | b80f67282252dda16917151c5af19f211fa0b597 /src/handlers/users.rs | |
parent | 375fc45f310476a0a49fc48054f6563c8e02e2f6 (diff) |
fix add to cart endpoint
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(), |