From fcadd98701b163407286d87fbca8e51d6be63e71 Mon Sep 17 00:00:00 2001 From: core Date: Sun, 2 Apr 2023 16:01:09 -0400 Subject: [PATCH] fix --- trifid-api/.env | 2 +- trifid-api/src/routes/v1/signup.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {