View | Details | Raw Unified | Return to bug 32787 | Differences between
and this patch

Collapse All | Expand All

(-)src/univention/management/console/protocol/server.py (+3 lines)
 Lines 213-218    Link Here 
213
			Server.reload()
213
			Server.reload()
214
			state.authResponse = Response( msg )
214
			state.authResponse = Response( msg )
215
			try:
215
			try:
216
				for key in ('username', 'password', 'new_password'):
217
					if isinstance(msg.body[key], (unicode,)):
218
						msg.body[key] = msg.body[key].encode('UTF-8')
216
				state.authenticate( msg.body[ 'username' ], msg.body[ 'password' ], msg.body.get( 'new_password' ) )
219
				state.authenticate( msg.body[ 'username' ], msg.body[ 'password' ], msg.body.get( 'new_password' ) )
217
			except ( TypeError, KeyError ), e:
220
			except ( TypeError, KeyError ), e:
218
				state.authResponse.status = BAD_REQUEST_INVALID_OPTS
221
				state.authResponse.status = BAD_REQUEST_INVALID_OPTS

Return to bug 32787