about summary refs log tree commit diff
path: root/users/grfn/xanthous/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'users/grfn/xanthous/server/src')
-rw-r--r--users/grfn/xanthous/server/src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/grfn/xanthous/server/src/main.rs b/users/grfn/xanthous/server/src/main.rs
index 915d1c94db74..8441a5db3752 100644
--- a/users/grfn/xanthous/server/src/main.rs
+++ b/users/grfn/xanthous/server/src/main.rs
@@ -174,6 +174,12 @@ impl server::Handler for Handler {
         self.finished_auth(Auth::Accept)
     }
 
+    fn auth_password(mut self, username: &str, _password: &str) -> Self::FutureAuth {
+        info!(%username, "Accepted new connection");
+        self.username = Some(username.to_owned());
+        self.finished_auth(Auth::Accept)
+    }
+
     fn auth_publickey(
         mut self,
         username: &str,