Updated to latest and greatest auth version.

This commit is contained in:
Acrimon 2020-01-01 19:41:42 +01:00 committed by Marcel Märtens
parent 50b845d1c3
commit 584dcddba9
4 changed files with 496 additions and 324 deletions

810
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -31,4 +31,4 @@ prometheus = "0.7"
prometheus-static-metric = "0.2"
rouille = "3.0.0"
portpicker = { git = "https://github.com/wusyong/portpicker-rs", branch = "fix_ipv6" }
authc = { git = "https://gitlab.com/veloren/auth.git" }
authc = { git = "https://gitlab.com/veloren/auth.git", rev = "7c1abde83f0ea7d83b0e7c655fac82eb9bb3d7ad" }

View File

@ -64,7 +64,7 @@ rust-argon2 = "0.5"
bincode = "1.2"
deunicode = "1.0"
uvth = "3.1.1"
authc = { git = "https://gitlab.com/veloren/auth.git" }
authc = { git = "https://gitlab.com/veloren/auth.git", rev = "7c1abde83f0ea7d83b0e7c655fac82eb9bb3d7ad" }
[target.'cfg(target_os = "macos")'.dependencies]
dispatch = "0.1.4"

View File

@ -80,11 +80,7 @@ impl ClientInit {
&player.alias,
&password
);
match auth_client.sign_in(
&player.alias,
&password,
socket_addr.ip(),
) {
match auth_client.sign_in(&player.alias, &password) {
Ok(token) => token.serialize(),
// TODO: Properly deal with it
Err(e) => panic!(