mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement identity remove action
This commit is contained in:
parent
00afa70d5d
commit
29083f50d9
8 changed files with 241 additions and 18 deletions
|
|
@ -86,7 +86,7 @@ impl Gemini {
|
|||
.gemini
|
||||
.auth
|
||||
.database
|
||||
.records(None)
|
||||
.records_scope(None)
|
||||
.unwrap()
|
||||
.iter()
|
||||
.filter(|this| this.profile_identity_gemini_id == identity.id)
|
||||
|
|
@ -100,7 +100,7 @@ impl Gemini {
|
|||
.gemini
|
||||
.auth
|
||||
.database
|
||||
.records(Some(auth_url.as_str()))
|
||||
.records_scope(Some(auth_url.as_str()))
|
||||
.unwrap()
|
||||
.iter()
|
||||
.filter(|this| this.profile_identity_gemini_id == identity.id)
|
||||
|
|
@ -162,7 +162,8 @@ impl Gemini {
|
|||
}
|
||||
// Remove all identity auths for `auth_uri`
|
||||
None => {
|
||||
if let Err(reason) = profile.identity.gemini.auth.remove(auth_url.as_str())
|
||||
if let Err(reason) =
|
||||
profile.identity.gemini.auth.remove_scope(auth_url.as_str())
|
||||
{
|
||||
todo!("{}", reason.to_string())
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue