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

feat: register_user api params validation #275

Open
lispc opened this issue Aug 18, 2021 · 1 comment
Open

feat: register_user api params validation #275

lispc opened this issue Aug 18, 2021 · 1 comment

Comments

@lispc
Copy link
Member

lispc commented Aug 18, 2021

we should check requests in

pub fn register_user(&mut self, real: bool, mut req: UserInfo) -> std::result::Result<UserInfo, Status> {

eg, pubkey should be "0x{hex string}"

@lispc
Copy link
Member Author

lispc commented Aug 18, 2021

PubkeyExt::from_str(&user.l2_pubkey) should be ok

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