Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oauth: refactorize request_access_token() returning a simple boolean #9299

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

EdouardVanbelle
Copy link
Contributor

Hello please find this small refactorization on OAuth module (remove unused parameters) as they are now stored during login_phase

@@ -707,7 +702,7 @@ public function request_access_token($auth_code, $state = null)
// store crypted code_verifier because session is going to be killed
$this->login_phase['code_verifier'] = $_SESSION['oauth_code_verifier'];
}
return $this->login_phase;
return true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move the other two return false statements to the end of the function.

@EdouardVanbelle EdouardVanbelle requested a review from alecpl January 5, 2024 22:50
@alecpl alecpl merged commit 77aca18 into roundcube:master Jan 6, 2024
15 checks passed
@EdouardVanbelle EdouardVanbelle deleted the lean/code-cleanup branch January 6, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants