refactoring: securize find_user_by_*
This commit is contained in:
1 parent
4ce81c6210
commit
8581ebb558
2 files changed
+2
-2
No files matched your search
@@ -3,7 +3,7 @@ $$
|
||||
declare
|
||||
_id alias for id;
|
||||
begin
|
||||
select to_json(u) into resource
|
||||
select to_jsonb(u) - 'password' into resource
|
||||
from "user" as u
|
||||
where u.id = _id;
|
||||
end;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user