We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c57a840 commit b897e87Copy full SHA for b897e87
startos/actions/resetAdmin.ts
@@ -64,7 +64,7 @@ export const resetAdmin = sdk.Action.withoutInput(
64
subc.execFail([
65
'sqlite3',
66
'/data/homeserver.db',
67
- `UPDATE users SET password_hash = "${passwordHash}" WHERE name = (SELECT name FROM users ORDER BY creation_ts ASC LIMIT 1)`,
+ `UPDATE users SET password_hash = '${passwordHash.toString().trim()}' WHERE name = (SELECT name FROM users ORDER BY creation_ts ASC LIMIT 1)`,
68
]),
69
)
70
} else {
0 commit comments