diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-11-26 11:41:15 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-11-26 11:45:05 -0500 |
commit | 1beada71234ff83d92e6e620edbfab4dcb760df5 (patch) | |
tree | 65f6955757fe9ab2f2a77edd9f5e89f021eb57f7 /teleterm/src/web/list.rs | |
parent | 46fbf870d65e747787b70cbbd83f21766fed5231 (diff) | |
download | teleterm-1beada71234ff83d92e6e620edbfab4dcb760df5.tar.gz teleterm-1beada71234ff83d92e6e620edbfab4dcb760df5.zip |
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)
Diffstat (limited to 'teleterm/src/web/list.rs')
-rw-r--r-- | teleterm/src/web/list.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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, |