Skip to content

Commit 5706861

Browse files
gtmillsbradbishop
authored andcommitted
Don't check for credentials on the login API
The web server should not be checking for credentials on the login API. This allows the GUI to check the old password on a password change. Resolves openbmc/openbmc#3190 Tested: Verfied login still works and tested changing the user password from the GUI. Change-Id: I7c3570d50c011a0327a34f09b447dec5ca42cb9f Signed-off-by: Gunnar Mills <[email protected]>
1 parent 5c518f6 commit 5706861

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

module/obmc/wsgi/apps/rest_dbus.py

-4
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,6 @@ def do_logout(self, **kw):
687687
return self.no_user_str
688688

689689
def do_login(self, **kw):
690-
session = self.get_session_from_cookie()
691-
if session is not None:
692-
return self.login_str % (session['user'], 'in')
693-
694690
if len(request.parameter_list) != 2:
695691
abort(400, self.bad_json_str % (request.json))
696692

0 commit comments

Comments
 (0)