From 757ccac0103541a34d040ef4812b2e7afb9f1f02 Mon Sep 17 00:00:00 2001
From: Freya Murphy <freya@freyacat.org>
Date: Fri, 20 Dec 2024 00:30:08 -0500
Subject: rename admin schema to xssbook

---
 src/db/rest/user/api_update_password.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/db/rest/user/api_update_password.sql')

diff --git a/src/db/rest/user/api_update_password.sql b/src/db/rest/user/api_update_password.sql
index 34cc1ac..acc53de 100644
--- a/src/db/rest/user/api_update_password.sql
+++ b/src/db/rest/user/api_update_password.sql
@@ -20,7 +20,7 @@ BEGIN
 
 	SELECT password
 		INTO _real_password
-		FROM admin.user
+		FROM xssbook.user
 		WHERE id = _user_id;
 
 	IF _real_password <> current_password THEN
@@ -30,7 +30,7 @@ BEGIN
 	END IF;
 
 	UPDATE
-		admin.user
+		xssbook.user
 	SET
 		"password" = new_password
 	WHERE
@@ -40,5 +40,5 @@ $BODY$;
 
 GRANT EXECUTE ON FUNCTION api.update_password(TEXT, TEXT)
 	TO rest_user;
-GRANT SELECT, UPDATE ON TABLE admin.user
+GRANT SELECT, UPDATE ON TABLE xssbook.user
 	TO rest_user;
-- 
cgit v1.2.3-freya

