status-im / ens-usernames

DApp to register usernames for Status Network
MIT License
19 stars 11 forks source link

UI must handle reserved names #61

Closed rachelhamlin closed 5 years ago

rachelhamlin commented 5 years ago

A user should be prevented from registering a reserved name from this list: https://github.com/status-im/ens-usernames/blob/master/config/ens-usernames/reservedNames.js

The reserved list was created to protect users from malicious use of reputed names, e.g. the name of a financial institution.

If a user registers a reserved name, it will be automatically slashed and he/she will lose their deposit.

Thus, we should prevent users from being able to register any name from that list at all through the UI.

Let's re-use the same error screen styling from elsewhere in the DApp to present an error that reads, This name is reserved for security purposes. Please try another.

image