Skip to content
Snippets Groups Projects
Verified Commit b009c807 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[OAuth] Fix copy/paste (probably?) mistake

parent c768aa93
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ fn full_key(prefix: &str, key: &str) -> String { ...@@ -47,7 +47,7 @@ fn full_key(prefix: &str, key: &str) -> String {
} }
fn get_client<E: Copy>(conf: Config, prefix: &str, error_value: E) -> Result<BasicClient, E> { fn get_client<E: Copy>(conf: Config, prefix: &str, error_value: E) -> Result<BasicClient, E> {
let client_id = ClientId::new(get_or_error(&conf, &full_key(prefix, "client_secret"), error_value)?); let client_id = ClientId::new(get_or_error(&conf, &full_key(prefix, "client_id"), error_value)?);
let client_secret = match get_optional(&conf, &full_key(prefix, "client_secret")) { let client_secret = match get_optional(&conf, &full_key(prefix, "client_secret")) {
Some(v) => Some(ClientSecret::new(v)), Some(v) => Some(ClientSecret::new(v)),
None => None, None => None,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment