refactoring: securize find_user_by_*

This commit is contained in:
2019-07-26 16:27:46 +02:00
parent 4ce81c6210
commit 8581ebb558
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ $$
declare
_username alias for username;
begin
select to_json(u) into resource
select to_jsonb(u) - 'password' into resource
from "user" as u
where u.username = _username;
end;