Can login with SSO & change Password
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
create or replace function find_citizen_by_email(_email text, out resource json) language plpgsql as
|
||||
$$
|
||||
begin
|
||||
select to_json(t) into resource
|
||||
from (
|
||||
select
|
||||
z.*,
|
||||
find_user_by_id(z.user_id) as "user"
|
||||
from citizen as z
|
||||
where z.email = _email
|
||||
) as t;
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- drop function if exists find_citizen_by_email(text, out json);
|
||||
@@ -19,7 +19,7 @@ create table citizen
|
||||
user_id uuid not null references "user" (id) unique,
|
||||
vote_anonymous boolean default true not null,
|
||||
follow_anonymous boolean default true not null,
|
||||
email text not null check ( email ~* '.+@.+\..+' )
|
||||
email text not null check ( email ~* '.+@.+\..+' ) unique
|
||||
);
|
||||
|
||||
create table workgroup
|
||||
|
||||
Reference in New Issue
Block a user