From 6b0878694707f7e682e16cedb3aac4e744e073c5 Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Tue, 17 Dec 2019 13:40:10 +0100 Subject: [PATCH] Improves an error message. --- src/main.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cr b/src/main.cr index 6d03720..458553f 100644 --- a/src/main.cr +++ b/src/main.cr @@ -81,7 +81,7 @@ class AuthD::Service Response::UserAdded.new user.to_public when Request::GetUserByCredentials - user = @users_per_login.get request.login + user = @users_per_login.get? request.login unless user return Response::Error.new "invalid credentials"