From 4df4fa993a0c3e3f56e8766d750ad28fba7fad93 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Tue, 29 Nov 2022 23:25:51 +0100 Subject: [PATCH] U --- initdb/02_5_signalk_auth_otp.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initdb/02_5_signalk_auth_otp.sql b/initdb/02_5_signalk_auth_otp.sql index 301d95f..22ca768 100644 --- a/initdb/02_5_signalk_auth_otp.sql +++ b/initdb/02_5_signalk_auth_otp.sql @@ -172,7 +172,7 @@ AS $pushover$ -- Verify token SELECT auth.verify_otp_fn(token) INTO _email; IF _email IS NOT NULL THEN - -- Set user email into env to allow RLS update + -- Set user email into env to allow RLS update PERFORM set_config('user.email', _email, false); -- Add pushover_user_key PERFORM api.update_user_preferences_fn('{pushover_user_key}'::TEXT, pushover_user_key::TEXT); @@ -206,7 +206,7 @@ AS $telegram$ -- Verify token SELECT auth.verify_otp_fn(token) INTO _email; IF _email IS NOT NULL THEN - -- Set user email into env to allow RLS update + -- Set user email into env to allow RLS update PERFORM set_config('user.email', _email, false); -- Add telegram SELECT api.update_user_preferences_fn('{telegram}'::TEXT, telegram_obj::TEXT) INTO _updated;