Added avatar deletion and uploading ( v1 api )

This commit is contained in:
Shiroyasha 2024-07-01 17:47:59 +03:00
parent 64d1111522
commit e8bf52dfd1
Signed by: shiroyashik
GPG key ID: E4953D3940D7860A
6 changed files with 65 additions and 29 deletions

View file

@ -137,7 +137,7 @@ impl UManager {
) -> Option<dashmap::mapref::one::Ref<'_, Uuid, Userinfo>> {
self.registered.get(uuid)
}
pub fn is_authenticated(&self, token: &String) -> bool {
pub fn _is_authenticated(&self, token: &String) -> bool {
self.authenticated.contains_key(token)
}
pub fn _is_registered(&self, uuid: &Uuid) -> bool {