def SMDS_auth_aux(username, password): api = MDAPI() user = None try: user = auth_user_from_email( api, username ) except Exception, e: logger.error( "User '%s' could not be authenticated (exception = %s)" % (username, e) ) return False
def SMDS_auth_aux(username, password): api = MDAPI() user = None try: user = auth_user_from_email(api, username) except Exception, e: logger.error( "User '%s' could not be authenticated (exception = %s)" % (username, e)) return False
def login_bare( self, username, password ): """ Bare essentials login. """ api = MDAPI() user = None try: user = auth_user_from_email( api, username ) except Exception, e: logger.error( "User '%s' could not be authenticated (exception = %s)" % (username, e) ) return False
def login_bare(self, username, password): """ Bare essentials login. """ api = MDAPI() user = None try: user = auth_user_from_email(api, username) except Exception, e: logger.error( "User '%s' could not be authenticated (exception = %s)" % (username, e)) return False