diff --git a/trifid-api/.env b/trifid-api/.env index 54dc561..b4f6475 100644 --- a/trifid-api/.env +++ b/trifid-api/.env @@ -1 +1 @@ -DATABASE_URL=postgres://postgres@localhost/hotel \ No newline at end of file +DATABASE_URL=postgres://postgres@localhost/trifid \ No newline at end of file diff --git a/trifid-api/src/routes/v1/signup.rs b/trifid-api/src/routes/v1/signup.rs index 92b5ac8..2dcaccd 100644 --- a/trifid-api/src/routes/v1/signup.rs +++ b/trifid-api/src/routes/v1/signup.rs @@ -45,7 +45,7 @@ pub async fn signup_request(data: Data, req: Json) -> H } }; - if user.is_empty() { + if !user.is_empty() { return HttpResponse::Unauthorized().json(APIErrorsResponse { errors: vec![ APIError {