From 8ce307bbdcf4ced0b8ab63d07e8b0ec0d49b2807 Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Wed, 14 Aug 2024 23:46:36 -0400 Subject: [PATCH] return user json --- src/routes/auth.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/auth.nim b/src/routes/auth.nim index 9ec711f..ff82141 100644 --- a/src/routes/auth.nim +++ b/src/routes/auth.nim @@ -70,5 +70,5 @@ proc createAuthenticationRoutes*() = respErr "Incorrect username or password.\n" # fails if password is wrong but mentions username to obfuscates if a user exists or not info "Replaced token.\n" & reqInfo - resp200 user.token.toJson() + resp200 user.toJson()