Skip to content

Commit

Permalink
add info message on basic authenfication and user login
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Oct 28, 2021
1 parent 5e01bda commit 8b86b2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/roswww/roswww_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def _create_webserver(self, packages, single_package=None):
@param packages: name and path of ROS packages.
'''
def _auth(username, password):
self.loginfo("User %s attempt to login"%(username))
if username in self._keys:
return self._keys[username] == password
return False
Expand Down Expand Up @@ -132,6 +133,7 @@ def get(self, path, include_body=True):
file_handler = BasicNoCacheStaticFileHandler
else:
file_handler = NoCacheStaticFileHandler
self.loginfo("Configure webserver with cache:%s, basic:%s"%(self._cached, self._basic))

if single_package:
for package in packages:
Expand Down

0 comments on commit 8b86b2d

Please sign in to comment.