From 38d185d058e591cd5c9a37c2aae7dfe1bc5c1f51 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Sun, 5 Feb 2023 01:18:24 +0100 Subject: [PATCH] Add api.recover comment function --- initdb/02_5_signalk_auth_otp.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/initdb/02_5_signalk_auth_otp.sql b/initdb/02_5_signalk_auth_otp.sql index 82c8565..976bcf5 100644 --- a/initdb/02_5_signalk_auth_otp.sql +++ b/initdb/02_5_signalk_auth_otp.sql @@ -105,12 +105,12 @@ AS $recover_fn$ $recover_fn$ language plpgsql security definer; -- Description COMMENT ON FUNCTION - api.reset + api.recover IS 'Send recover password email to reset password'; DROP FUNCTION IF EXISTS api.reset; CREATE OR REPLACE FUNCTION api.reset(in pass text, in token text, in uuid text) returns BOOLEAN -AS $recover_fn$ +AS $reset_fn$ DECLARE _email TEXT := NULL; BEGIN @@ -140,7 +140,7 @@ AS $recover_fn$ END IF; RETURN False; END; -$recover_fn$ language plpgsql security definer; +$reset_fn$ language plpgsql security definer; -- Description COMMENT ON FUNCTION api.reset