Skip to content

Commit

Permalink
Update user.py
Browse files Browse the repository at this point in the history
  • Loading branch information
elg committed Oct 9, 2019
1 parent f1e3b78 commit 4167d19
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions passhportd/app/views_mod/user/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ def user_login():
app.logger.info("Authentication ok for {}".format(login))
# If the LDAP connection is ok, user can connect
return utils.response("Authorized", 200)
else:
app.logger.warning("Authentication error for {} => ".format(login) + str(result))
return utils.response("Refused: " + str(result), 200)
app.logger.warning("Authentication error for {} => ".format(login) + str(result))
return utils.response("Refused: " + str(result), 200)


@app.route("/user/list")
Expand Down

0 comments on commit 4167d19

Please sign in to comment.