Skip to content

user: PUT accepts current_password - #36

Open
aberoham wants to merge 1 commit into
NicTool:mainfrom
aberoham:user-current-password
Open

aberoham wants to merge 1 commit into
NicTool:mainfrom
aberoham:user-current-password

Conversation

@aberoham

Copy link
Copy Markdown
Contributor

PUT /user changes a password without the current password. user.PUT rejects current_password, and the api answers 400. This adds current_password to user.PUT as any non-empty string, matching the session login password rule.

The api depends on ^1.0.1, so a fresh install picks up the next release. api main passes current_password to the store. Reproduced: json and toml save it in plaintext, and mysql fails on the unknown column. NicTool/api#101 checks the current password and drops the field before the store. Release this with NicTool/api#101.

user.PUT rejects a current_password field, so the api answers 400 to a
password change that includes it. It takes any non-empty string, as
session login does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant