Exemple #1
0
    def update_password(user: User):
        request = DBRequest()

        RequestsHelper.update_password(user, request)

        request.complete()
        request.close()
Exemple #2
0
    def delete_user(user: User):
        request = DBRequest()

        RequestsHelper.delete_user(user, request)

        request.complete()
        request.close()
Exemple #3
0
    def insert_user_v2(user: User):
        request = DBRequest()

        RequestsHelper.insert_user_v2(user, request)

        request.complete()
        request.close()
Exemple #4
0
    def update_name(user: User):
        request = DBRequest()

        RequestsHelper.update_uname(user, request)

        request.complete()
        request.close()
Exemple #5
0
    def set_tabnr(user: User):
        request = DBRequest()

        RequestsHelper.set_tabnr(request, user)

        request.complete()
        request.close()
Exemple #6
0
    def change_status(user: User, new_status):
        request = DBRequest()

        RequestsHelper.change_status(request, user, new_status)

        request.complete()
        request.close()
Exemple #7
0
    def create_status(user: User, start_status):
        request = DBRequest()

        RequestsHelper.create_status(request, user, start_status)

        request.complete()
        request.close()
Exemple #8
0
    def get_user(user: User):
        request = DBRequest()

        data = RequestsHelper.get_user(user, request)

        request.close()

        return data
Exemple #9
0
    def get_all_users():
        request = DBRequest()

        data = RequestsHelper.get_all_users(request)

        request.complete()
        request.close()

        return data
Exemple #10
0
    def get_status(user: User):
        request = DBRequest()

        status = RequestsHelper.get_status(user)

        request.complete()
        request.close()

        return status
Exemple #11
0
    def check_password(user: User):
        request = DBRequest()

        data = RequestsHelper.get_user(user, request)

        request.complete()
        request.close()

        # Здесь добавить проверку на корректность пароля
        if not data[0][2]:
            return False
        return True