sveltekit-auth-example 1.0.54 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Backlog
2
2
  * Add password complexity checking on /register and /profile pages (only checks for length currently despite what the pages say)
3
3
 
4
+ # 1.0.55
5
+ * Add comment to indicate property that should be removed if ssl is turned off on the PostgreSQL server (thanks Brazos)
6
+ * Update public.reset_password stored procedure to plpgsql (thanks Brazos)
7
+
4
8
  # 1.0.54
5
9
  * Bump sveltekit, @types/pg, @typescript*, boostrap, eslint, prettier-plugin-svelte, sass, tslib, typescript, vitest
6
10
 
package/db_create.sql CHANGED
@@ -234,14 +234,14 @@ CREATE PROCEDURE public.delete_session(input_id integer)
234
234
  DELETE FROM sessions WHERE user_id = input_id;
235
235
  $$;
236
236
 
237
- CREATE OR REPLACE PROCEDURE public.reset_password(
238
- input_id integer,
239
- input_password text)
240
- LANGUAGE 'sql'
241
- AS $BODY$
237
+ CREATE OR REPLACE PROCEDURE public.reset_password(IN input_id integer, IN input_password text)
238
+ LANGUAGE plpgsql
239
+ AS $procedure$
240
+ BEGIN
242
241
  UPDATE users SET password = crypt(input_password, gen_salt('bf', 8)) WHERE id = input_id;
243
242
  END;
244
- $BODY$;
243
+ $procedure$
244
+ ;
245
245
 
246
246
  ALTER PROCEDURE public.reset_password(integer, text) OWNER TO auth;
247
247
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sveltekit-auth-example",
3
3
  "description": "SvelteKit Authentication Example",
4
- "version": "1.0.54",
4
+ "version": "1.0.55",
5
5
  "private": false,
6
6
  "author": "Nate Stuyvesant",
7
7
  "license": "https://github.com/nstuyvesant/sveltekit-auth-example/blob/master/LICENSE",
@@ -47,8 +47,8 @@
47
47
  "@types/google.accounts": "^0.0.7",
48
48
  "@types/jsonwebtoken": "^9.0.2",
49
49
  "@types/pg": "^8.10.2",
50
- "@typescript-eslint/eslint-plugin": "^5.59.9",
51
- "@typescript-eslint/parser": "^5.59.9",
50
+ "@typescript-eslint/eslint-plugin": "^5.59.11",
51
+ "@typescript-eslint/parser": "^5.59.11",
52
52
  "bootstrap": "^5.3.0",
53
53
  "eslint": "^8.42.0",
54
54
  "eslint-config-prettier": "^8.8.0",
@@ -57,7 +57,7 @@
57
57
  "jsonwebtoken": "^9.0.0",
58
58
  "prettier": "^2.8.8",
59
59
  "prettier-plugin-svelte": "^2.10.1",
60
- "sass": "^1.63.2",
60
+ "sass": "^1.63.4",
61
61
  "svelte": "^3.59.1",
62
62
  "svelte-check": "^3.4.3",
63
63
  "tslib": "^2.5.3",
@@ -6,7 +6,7 @@ import { DATABASE_URL } from '$env/static/private'
6
6
  const pool = new pg.Pool({
7
7
  max: 10, // default
8
8
  connectionString: DATABASE_URL,
9
- ssl: {
9
+ ssl: { // If your postgresql.conf does not have `ssl = on`, remove the entire ssl property or you will get an error
10
10
  rejectUnauthorized: false
11
11
  }
12
12
  })