This is for security, just in case two users have the same cookie, althought it is unlikely, but nevertheless less guessable. I also need to refresh the cookie when the user changes their email address, because it is liked toghether. It does mean that it will logout from everywhere else, but i can not do anything about that.
8 lines
139 B
PL/PgSQL
8 lines
139 B
PL/PgSQL
-- Verify numerus:current_user_cookie on pg
|
|
|
|
begin;
|
|
|
|
select has_function_privilege('numerus.current_user_cookie()', 'execute');
|
|
|
|
rollback;
|