Skip to content

Commit

Permalink
Fix unpair regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gouline committed Jul 3, 2018
1 parent fe49adb commit a277582
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
8 changes: 5 additions & 3 deletions kebabpos/KebabPos/Logics/KebabApp+SPIConnectionDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ extension KebabApp: SPIDelegate {
func spi(_ spi: SPIClient!, secretsChanged secrets: SPISecrets?, state: SPIState!) {
SPILogMsg("secrets \(state)")
if let secrets = secrets {
SPILogMsg("\n\n\n# --------- I GOT NEW SECRETS -----------")
SPILogMsg("\n\n")
SPILogMsg("# ----------- I GOT NEW SECRETS -----------")
SPILogMsg("# ---------- PERSIST THEM SAFELY ----------")
SPILogMsg("# \(secrets.encKey):\(secrets.hmacKey)")
SPILogMsg("# -----------------------------------------")
Expand All @@ -38,8 +39,9 @@ extension KebabApp: SPIDelegate {
settings.encriptionKey = secrets.encKey!
settings.hmacKey = secrets.hmacKey!
} else {
SPILogMsg("\n\n\n# --------- THE SECRETS HAVE BEEN VOIDED -----------")
SPILogMsg("# ---------- CONSIDER ME UNPAIRED ----------")
SPILogMsg("\n\n")
SPILogMsg("# ------ THE SECRETS HAVE BEEN VOIDED -----")
SPILogMsg("# ---------- CONSIDER ME UNPAIRED ---------")
SPILogMsg("# -----------------------------------------")

settings.encriptionKey = ""
Expand Down
2 changes: 1 addition & 1 deletion kebabpos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EXTERNAL SOURCES:

CHECKOUT OPTIONS:
SPIClient-iOS:
:commit: 38b53c5f4cb74b42f8518a23220cc2cedaec7ebc
:commit: 60671c34a9b00934d9805dad2af12ebe9f5cda22
:git: https://github.com/AssemblyPayments/spi-client-ios.git

SPEC CHECKSUMS:
Expand Down
2 changes: 1 addition & 1 deletion kebabpos/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions kebabpos/Pods/SPIClient-iOS/Library/SPIClient.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a277582

Please sign in to comment.