fix resetpassword syntax error
fixes #840