Skip to content

Commit

Permalink
renamed endpoint for mscolab authentification
Browse files Browse the repository at this point in the history
  • Loading branch information
joernu76 committed Jul 28, 2023
1 parent 3ea5497 commit d1c08f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mslib/mscolab/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def home():
return render_template("/index.html")


@APP.route("/status")
@APP.route("/status_auth")
@conditional_decorator(auth.login_required, mscolab_settings.__dict__.get('enable_basic_http_authentication', False))
def hello():
return "Mscolab server"
Expand Down
2 changes: 1 addition & 1 deletion mslib/msui/mscolab.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def connect_handler(self):
s = requests.Session()
s.auth = auth
s.headers.update({'x-test': 'true'})
r = s.get(urljoin(url, 'status'), timeout=(2, 10))
r = s.get(urljoin(url, 'status_auth'), timeout=(2, 10))
if r.status_code == 401:
self.set_status("Error", 'Server authentication data were incorrect.')
elif r.status_code == 200:
Expand Down

0 comments on commit d1c08f7

Please sign in to comment.