diff --git a/src/routes/logout.rs b/src/routes/logout.rs index 1b46de4..ef8c3c3 100644 --- a/src/routes/logout.rs +++ b/src/routes/logout.rs @@ -19,16 +19,15 @@ pub fn logout(cookies: &CookieJar<'_>, referer: Referer) -> Redirect { params.insert("token", token); params }; - match client + if let Err(error) = client .post("https://discord.com/api/oauth2/token/revoke") .header("Content-Type", "application/x-www-form-urlencoded") .form(¶ms) .send() .await { - Ok(_) => println!("Successfully revoked token"), - Err(error) => println!("Failed to revoke token: {:?}", error), - }; + println!("Failed to revoke token: {:?}", error); + } }); User::purge(cookies); let redirect_url = referer.0.unwrap_or("/".to_owned()); diff --git a/styles/sass/style.scss b/styles/sass/style.scss index 3968357..925bc2f 100644 --- a/styles/sass/style.scss +++ b/styles/sass/style.scss @@ -82,9 +82,10 @@ input[type=number] { } } - a, .link { + .link { color: var(--fg); font-weight: bold; + white-space: nowrap; } & > .right { diff --git a/templates/index.html.tera b/templates/index.html.tera index 3e40889..ce54f00 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -11,9 +11,9 @@ {% include "modal" %}