aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm/src/web/login.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-27 14:42:46 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-27 15:19:47 -0500
commit17449283628c76c0cbaa8c723750ff80aafdd7da (patch)
treee9ecae60bc01f3753366b910050c35f4b270fc44 /teleterm/src/web/login.rs
parent92bf64ce74050545c96694c8d34202b1546ab390 (diff)
downloadteleterm-17449283628c76c0cbaa8c723750ff80aafdd7da.tar.gz
teleterm-17449283628c76c0cbaa8c723750ff80aafdd7da.zip
pull auth_client out into its own field
it doesn't hurt anything even though it's not super necessary for plain logins, and it's more convenient to access without needing to deconstruct the enum value
Diffstat (limited to 'teleterm/src/web/login.rs')
-rw-r--r--teleterm/src/web/login.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/teleterm/src/web/login.rs b/teleterm/src/web/login.rs
index 2873887..0f082e1 100644
--- a/teleterm/src/web/login.rs
+++ b/teleterm/src/web/login.rs
@@ -34,7 +34,12 @@ pub fn run(
)
});
let auth = crate::protocol::Auth::plain(&username);
- let client = crate::client::Client::raw("teleterm-web", connector, &auth);
+ let client = crate::client::Client::raw(
+ "teleterm-web",
+ connector,
+ &auth,
+ crate::protocol::AuthClient::Web,
+ );
let (w_login, r_login) = tokio::sync::oneshot::channel();