Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Link/Unlink an address to a user account from profile page #51

Closed
Tbaut opened this issue Nov 23, 2019 · 2 comments
Closed

Link/Unlink an address to a user account from profile page #51

Tbaut opened this issue Nov 23, 2019 · 2 comments

Comments

@Tbaut
Copy link
Collaborator

Tbaut commented Nov 23, 2019

Partially needs #15

  • Front-end: List user accounts/addresses with polkadot-js extension api and let user select an address (see example implementation)
  • Front-end: Request a message to sign to Back-end
  • Back-end: Generate a message to be signed with random number (stored in DB)
  • Front-end: Request the user to sign this message and submit signed message to back end (needs Implement signRaw polkadot-js/extension#196)
  • Back-end: Verify the signed message, if valid link the user with the address
  • Back-end: Add address array to public endpoint
@Tbaut Tbaut changed the title Link an address to a user Link/Unlink an address to a user account Nov 23, 2019
@Tbaut Tbaut changed the title Link/Unlink an address to a user account Link/Unlink an address to a user account from profile page Nov 23, 2019
@Tbaut Tbaut transferred this issue from Tbaut/governance-platform Nov 29, 2019
@erler
Copy link
Contributor

erler commented Jan 10, 2020

Mocks

No addresses detected
Settings Page - No Address Detected

Available addresses
Settings Page - No Linked Address

Linked & Available addresses
Settings Page - Addresses Hover Styles

Hover Styles
Settings Page - Linking Addresses

Went with the social button styles from posts. lmk if you think they need color / look non-interactive

@Tbaut
Copy link
Collaborator Author

Tbaut commented Jan 11, 2020

Thanks, I think it looks good, let's see in practice. BTW the Unsubscribe button should have the same behavior than this one I believe.

@Tbaut Tbaut closed this as completed Jan 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants