We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ddb7ee commit ab50e76Copy full SHA for ab50e76
examples/user-authentication/login.sql
@@ -9,7 +9,11 @@ SELECT 'authentication' AS component,
9
-- and save it in a cookie on the user's browser.
10
INSERT INTO login_session (id, username)
11
VALUES (sqlpage.random_string(32), :username)
12
-RETURNING 'cookie' AS component, 'session' AS name, id AS value;
+RETURNING
13
+ 'cookie' AS component,
14
+ 'session' AS name,
15
+ id AS value,
16
+ FALSE AS secure; -- You can remove this if the site is served over HTTPS.
17
18
-- Redirect the user to the protected page.
-SELECT 'redirect' AS component, 'protected_page.sql' AS link;
19
+SELECT 'redirect' AS component, 'protected_page.sql' AS link;
0 commit comments