Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to modify main address #38

Open
matt-auckland opened this issue Feb 27, 2019 · 0 comments
Open

Add functionality to modify main address #38

matt-auckland opened this issue Feb 27, 2019 · 0 comments

Comments

@matt-auckland
Copy link
Contributor

matt-auckland commented Feb 27, 2019

  • Need a new api route on the back end to update the address.json file with the new address
  • On the settings page we need a form to update the address
  • On the deposit widget we need to a link to the settings page, something like: "Update wallet main address"
  • When we click submit, we will force the user to enter their username and password
  • once we get the potential new address on the backend, we will validate it with the RPC command validateaddress and check the JSON returned for isMine === true.
  • If true then we will update the address.json file

To create the new component you can use the angularcli: ng g component settings/componentName

The form just needs a title, a field to enter the address and a submit button.

When we click submit we want a pop up to to appear that asks if the user is sure and the details are correct. If you need an example on how to do this see generic-rpc-form.component

We send address to the /updatemainaddress route and we will validate the address with the validateaddress rpc command before we update the address.

There is an example on how to update a file using nodejs in the /uipassword route

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

No branches or pull requests

1 participant