Skip to content

Commit b897e87

Browse files
committed
fix reset action
1 parent c57a840 commit b897e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

startos/actions/resetAdmin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const resetAdmin = sdk.Action.withoutInput(
6464
subc.execFail([
6565
'sqlite3',
6666
'/data/homeserver.db',
67-
`UPDATE users SET password_hash = "${passwordHash}" WHERE name = (SELECT name FROM users ORDER BY creation_ts ASC LIMIT 1)`,
67+
`UPDATE users SET password_hash = '${passwordHash.toString().trim()}' WHERE name = (SELECT name FROM users ORDER BY creation_ts ASC LIMIT 1)`,
6868
]),
6969
)
7070
} else {

0 commit comments

Comments
 (0)