#NEWLINE# def password_auth_enabled( realm ) : #NEWLINE# #INDENT# if ( backend is not None ) : #NEWLINE# #INDENT# if ( ( realm . domain == 'zulip.com' ) and settings . PRODUCTION ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# for backend in django . contrib . auth . get_backends ( ) : #NEWLINE# #INDENT# if isinstance ( backend , EmailAuthBackend ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if isinstance ( backend , ZulipLDAPAuthBackend ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False