Use gen_random_uuid instead of uuid_generate_v4

This commit is contained in:
daurnimator
2016-03-14 20:51:35 +11:00
parent 1037824e11
commit 13eed84f57
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ begin
where token_type = 'reset'
and tokens.email = reset_password.email;
select uuid_generate_v4() into tok;
select gen_random_uuid() into tok;
insert into basic_auth.tokens (token, token_type, email)
values (tok, 'reset', reset_password.email);
perform pg_notify('reset',