comparison src/server/server.py @ 817:cf1812a4445e

server: fixed empty_password_allowed_warning_dangerous_list option
author Goffi <goffi@goffi.org>
date Sat, 26 Dec 2015 14:36:45 +0100
parents 6e27604ec95a
children f8a7a046ff9c
comparison
equal deleted inserted replaced
816:0fd4b81972c0 817:cf1812a4445e
835 else: # non existing username 835 else: # non existing username
836 request.write(C.PROFILE_AUTH_ERROR) 836 request.write(C.PROFILE_AUTH_ERROR)
837 request.finish() 837 request.finish()
838 return 838 return
839 else: 839 else:
840 if profile != login_jid.full() or (not password and profile not in self.sat_host.empty_password_allowed_warning_dangerous_list): 840 if profile != login_jid.full() or (not password and profile not in self.sat_host.options['empty_password_allowed_warning_dangerous_list']):
841 # profiles with empty passwords are restricted to local frontends 841 # profiles with empty passwords are restricted to local frontends
842 request.write(C.PROFILE_AUTH_ERROR) 842 request.write(C.PROFILE_AUTH_ERROR)
843 request.finish() 843 request.finish()
844 return 844 return
845 register_with_ext_jid = False 845 register_with_ext_jid = False