synapse/handlers/register.py
def register_email(self, threepidCreds):
        """
        Registers emails with an identity server.

        Used only by c/s api v1
        """

        for c in threepidCreds:
            logger.info("validating threepidcred sid %s on id server %s",
                        c['sid'], c['idServer'])
            try:
                identity_handler = self.hs.get_handlers().identity_handler
                threepid = yield identity_handler.threepid_from_creds(c)
            except Exception:
                logger.exception("Couldn't validate 3pid")
                raise RegistrationError(400, "Couldn't validate 3pid")

            if not threepid:
                raise RegistrationError(400, "Couldn't validate 3pid")
            logger.info("got threepid with medium '%s' and address '%s'",
                        threepid['medium'], threepid['address'])

            if not check_3pid_allowed(self.hs, threepid['medium'], threepid['address']):
                raise RegistrationError(
                    403, "Third party identifier is not allowed"
                )

        Registers emails with an identity server.

        Used only by c/s api v1
        
Registers emails with an identity server.
Used only by c/s api v1
Registers emails with an identity server . Used only by c / s api v1
def register_email(self, threepidCreds):
        for c in threepidCreds:
            logger.info("validating threepidcred sid %s on id server %s",
                        c['sid'], c['idServer'])
            try:
                identity_handler = self.hs.get_handlers().identity_handler
                threepid = yield identity_handler.threepid_from_creds(c)
            except Exception:
                logger.exception("Couldn't validate 3pid")
                raise RegistrationError(400, "Couldn't validate 3pid")
            if not threepid:
                raise RegistrationError(400, "Couldn't validate 3pid")
            logger.info("got threepid with medium '%s' and address '%s'",
                        threepid['medium'], threepid['address'])
            if not check_3pid_allowed(self.hs, threepid['medium'], threepid['address']):
                raise RegistrationError(
                    403, "Third party identifier is not allowed"
                )
def register_email ( self , threepidCreds ) : for c in threepidCreds : logger . info ( "validating threepidcred sid %s on id server %s" , c [ 'sid' ] , c [ 'idServer' ] ) try : identity_handler = self . hs . get_handlers ( ) . identity_handler threepid = yield identity_handler . threepid_from_creds ( c ) except Exception : logger . exception ( "Couldn't validate 3pid" ) raise RegistrationError ( 400 , "Couldn't validate 3pid" ) if not threepid : raise RegistrationError ( 400 , "Couldn't validate 3pid" ) logger . info ( "got threepid with medium '%s' and address '%s'" , threepid [ 'medium' ] , threepid [ 'address' ] ) if not check_3pid_allowed ( self . hs , threepid [ 'medium' ] , threepid [ 'address' ] ) : raise RegistrationError ( 403 , "Third party identifier is not allowed" )
Registers emails with an identity server.
Registers emails with an identity server .
"""
        Registers emails with an identity server.

        Used only by c/s api v1
        """
self
threepidCreds