Skip to content

Commit

Permalink
fixed: password is set in the clear on create using CLI #67
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Mar 12, 2024
1 parent 482b789 commit 48d022c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ outline: deep
---
# Change Log

TODO: Once we start doing relases I'll add that here.
## 2024-03-12
* Fixed a security bug where passwords created via the CLI were stored incorrectly.
3 changes: 2 additions & 1 deletion ving/cli/user.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ export default defineCommand({
username: args.add,
realName: args.add,
email: args.email,
password: args.password,
admin: args.admin,
});
await user.insert();
await user.setPassword(args.password);
await user.update();
formatList([user]);
}
else if (args.modify) {
Expand Down

0 comments on commit 48d022c

Please sign in to comment.