From 1beada71234ff83d92e6e620edbfab4dcb760df5 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 26 Nov 2019 11:41:15 -0500 Subject: store more information about the login state we need to know both who we are (so that the webface can display it) and also how to log back in as that user (since oauth methods log back in without specifying the username at all) --- teleterm/src/web/list.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'teleterm/src/web/list.rs') diff --git a/teleterm/src/web/list.rs b/teleterm/src/web/list.rs index 2acc9e5..e35efac 100644 --- a/teleterm/src/web/list.rs +++ b/teleterm/src/web/list.rs @@ -8,8 +8,8 @@ pub fn run( let session = gotham::middleware::session::SessionData::< crate::web::SessionData, >::borrow_from(&state); - let auth = if let Some(username) = &session.username { - crate::protocol::Auth::plain(username) + let auth = if let Some(login) = &session.login { + &login.auth } else { return ( state, -- cgit v1.2.3-54-g00ecf