Example #1
0
 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
Example #2
0
    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
Example #3
0
 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
Example #4
0
    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