#NEWLINE# def auth_finish( self , _unused ) : #NEWLINE# #INDENT# 'Handle success of the legacy authentication.' #NEWLINE# self . lock . acquire ( ) #NEWLINE# try : #NEWLINE# #INDENT# self . __logger . debug ( 'Authenticated' ) #NEWLINE# self . authenticated = True #NEWLINE# self . state_change ( 'authorized' , _unused . my_jid ) #NEWLINE# self . _post_auth ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . lock . release ( )