Adding a todo to add a User_::readSafe()
This commit is contained in:
parent
558ce7014e
commit
df8bf97342
1 changed files with 1 additions and 0 deletions
|
@ -636,6 +636,7 @@ impl Perform for Oper<TransferSite> {
|
||||||
|
|
||||||
let user_id = claims.id;
|
let user_id = claims.id;
|
||||||
let mut user = blocking(pool, move |conn| User_::read(conn, user_id)).await??;
|
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.password_encrypted = "".to_string();
|
||||||
user.private_key = None;
|
user.private_key = None;
|
||||||
user.public_key = None;
|
user.public_key = None;
|
||||||
|
|
Loading…
Reference in a new issue