Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjunetime committed Jan 12, 2024
1 parent f35f3b2 commit d751e21
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 46 deletions.
78 changes: 34 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ shared_data = { path = "../shared_data" }
web-sys = { version = "0.3.66", default-features = false, features = ["Window", "DragEvent", "DataTransfer", "FileList", "HtmlDocument", "HtmlButtonElement", "Blob"] }
gloo-console = { version = "0.3.0", default-features = false }
js-sys = { version = "0.3.66", default-features = false }
base64 = { version = "0.20.0", default-features = false, features = ["alloc"] }
base64 = { version = "0.21.7", default-features = false, features = ["alloc"] }
3 changes: 2 additions & 1 deletion frontend/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::style::SharedStyle;
use gloo_console::log;
use wasm_bindgen::JsCast;
use web_sys::HtmlInputElement;
use base64::prelude::*;

#[derive(PartialEq, Eq, Debug)]
enum LoginStatus {
Expand Down Expand Up @@ -60,7 +61,7 @@ pub fn auth_view(props: &AuthProps) -> Html {
let submit_click = Callback::from(move |_| {
let login_reclone = login_clone.clone();

let auth_header = format!("Basic {}", base64::encode(format!("{}:{}", creds.username, creds.password)));
let auth_header = format!("Basic {}", BASE64_STANDARD.encode(format!("{}:{}", creds.username, creds.password)));

wasm_bindgen_futures::spawn_local(async move {
let res = gloo_net::http::Request::get("/api/login")
Expand Down

0 comments on commit d751e21

Please sign in to comment.