Ejemplo n.º 1
0
    def check_user_exist(self):
        db = DatabaseConnection()
        username = db.check_username(self.username)
        email = db.check_email(self.email)

        if username != None:
            return 'Username is taken.'
        if email != None:
            return 'Email already has an account.'