fix: profile settings html sanitization
This commit is contained in:
parent
d1e8e2b27c
commit
37d034db39
7 changed files with 6 additions and 66 deletions
|
@ -51,6 +51,7 @@ impl DataManager {
|
|||
|
||||
auto_method!(get_user_by_id(usize as i64)@get_user_from_row -> "SELECT * FROM users WHERE id = $1" --name="user" --returns=User --cache-key-tmpl="atto.user:{}");
|
||||
auto_method!(get_user_by_username(&str)@get_user_from_row -> "SELECT * FROM users WHERE username = $1" --name="user" --returns=User --cache-key-tmpl="atto.user:{}");
|
||||
auto_method!(get_user_by_username_no_cache(&str)@get_user_from_row -> "SELECT * FROM users WHERE username = $1" --name="user" --returns=User);
|
||||
|
||||
/// Get a user given just their ID. Returns the void user if the user doesn't exist.
|
||||
///
|
||||
|
@ -409,7 +410,6 @@ impl DataManager {
|
|||
}
|
||||
|
||||
self.cache_clear_user(&user).await;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue