From be75d8b4d94bb4b57b9fefab2e99614749dac1e2 Mon Sep 17 00:00:00 2001 From: June Park Date: Sun, 9 Jun 2024 06:04:19 +0900 Subject: [PATCH] Update AuthenticationOperation.swift Signed-off-by: June Park --- AltStore/Operations/AuthenticationOperation.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltStore/Operations/AuthenticationOperation.swift b/AltStore/Operations/AuthenticationOperation.swift index ecc5e19b..1a11b297 100644 --- a/AltStore/Operations/AuthenticationOperation.swift +++ b/AltStore/Operations/AuthenticationOperation.swift @@ -490,7 +490,7 @@ private extension AuthenticationOperation { func requestCertificate() { - let machineName = "AltStore - " + UIDevice.current.name + let machineName = "SideStore - " + UIDevice.current.name ALTAppleAPI.shared.addCertificate(machineName: machineName, to: team, session: session) { (certificate, error) in do { @@ -524,7 +524,7 @@ private extension AuthenticationOperation func replaceCertificate(from certificates: [ALTCertificate]) { - guard let certificate = certificates.first(where: { $0.machineName?.starts(with: "AltStore") == true }) ?? certificates.first else { return completionHandler(.failure(AuthenticationError(.noCertificate))) } + guard let certificate = certificates.first(where: { $0.machineName?.starts(with: "SideStore") == true }) ?? certificates.first else { return completionHandler(.failure(AuthenticationError.noCertificate)) } ALTAppleAPI.shared.revoke(certificate, for: team, session: session) { (success, error) in if let error = error, !success