#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def _check_email_identity( self , authdict , _ ) : #NEWLINE# #INDENT# ( yield run_on_reactor ( ) ) #NEWLINE# if ( 'threepid_creds' not in authdict ) : #NEWLINE# #INDENT# raise LoginError ( 400 , 'Missing threepid_creds' , Codes . MISSING_PARAM ) #NEWLINE# #UNINDENT# threepid_creds = self [ 'threepid_creds' ] #NEWLINE# identity_handler = self . hs . get_handlers ( ) . identity_handler #NEWLINE# logger . info ( ( 'Getting validated threepid. threepidcreds: %r' % ( threepid_creds , ) ) ) #NEWLINE# threepid = ( yield identity_handler . threepid_from_creds ( threepid_creds ) ) #NEWLINE# if ( not threepid ) : #NEWLINE# #INDENT# raise LoginError ( 401 , '' , errcode = Codes . UNAUTHORIZED ) #NEWLINE# #UNINDENT# threepid [ 'threepid_creds' ] = authdict [ 'threepid_creds' ] #NEWLINE# defer . returnValue ( threepid )