Adding a todo to add a User_::readSafe()

This commit is contained in:
Dessalines 2020-07-27 09:18:33 -04:00
parent 558ce7014e
commit df8bf97342

View file

@ -636,6 +636,7 @@ impl Perform for Oper<TransferSite> {
let user_id = claims.id;
let mut user = blocking(pool, move |conn| User_::read(conn, user_id)).await??;
// TODO add a User_::read_safe() for this.
user.password_encrypted = "".to_string();
user.private_key = None;
user.public_key = None;