Closed Janther closed 6 years ago
We discussed how to implement this feature to allow users to remove their registered addresses. We propose splitting this feature in stages.
Create a page where the user can see the list of physical addresses that they registered, and indicate which ones were already confirmed. This can be done without modifications to the smart contracts.
Modify the PoPA contract, adding a method that allows the user to remove an address that they registered. This method should also remove the claim from the ClaimsRegistry.
Add a "Remove" button next to each item in the list. This button should call the method implemented in the previous step.
(Optional) We should allow "admins" to also be able to remove addresses. This would need some further design, in case it's a desired feature: who can do this? How do they get a list of addresses? Should they be able to see all registered addresses? How do we accomplish this (since mappings cannot be iterated)?
Let us know what you think.
I think (4) is not necessary.
I agree on 1-3
I think we can close this now.
What is it? (leave one option)
(Feature)
request (i.e. some nice-to-have feature is missing)What feature are you talking about?
We'll need to add a function to remove an address. On PoPA-side it should also trigger registry, and registry should trigger PoPA in case subject is removing his own address (since this is allowed by ERC780).
This Issue is a to follow up this thread https://github.com/poanetwork/poa-popa/issues/85#issuecomment-374538722
here is the conversation so far:
@pablofullana @fvictorio:
@Janther: