mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
feat: Implement oauth auth code and refresh token flows
This commit is contained in:
39 files changed
+1052
-154
No files matched your search
@@ -165,7 +165,8 @@ impl CheckAuth for AccessToken {
|
||||
if output.is_empty() {
|
||||
return Err!(Request(Unauthorized("Missing access token.")));
|
||||
}
|
||||
if let Ok((sender_user, sender_device)) = services.users.find_from_token(&output).await {
|
||||
if let Some((sender_user, sender_device)) = services.users.find_from_token(&output).await
|
||||
{
|
||||
// Locked users can only use /logout and /logout/all
|
||||
if services
|
||||
.users
|
||||
|
||||
Reference in new issue
Block a user