diff --git a/Config/BuildSettings.swift b/Config/BuildSettings.swift index e01c42660..ba53fdfaf 100644 --- a/Config/BuildSettings.swift +++ b/Config/BuildSettings.swift @@ -170,8 +170,8 @@ final class BuildSettings: NSObject { // MARK: - Feature Specifics - /// Blocked pin codes. User won't be able to select one of the pin in the list. - static let blockedPINs: [String] = [] + /// Not allowed pin codes. User won't be able to select one of the pin in the list. + static let notAllowedPINs: [String] = [] // MARK: - General Settings Screen diff --git a/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewModel.swift b/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewModel.swift index 4bbbe42d3..c0b72b6be 100644 --- a/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewModel.swift +++ b/Riot/Modules/SetPinCode/EnterPinCode/EnterPinCodeViewModel.swift @@ -114,7 +114,7 @@ final class EnterPinCodeViewModel: EnterPinCodeViewModelType { // choosing pin if firstPin.isEmpty { // check if this PIN is allowed - if pinCodePreferences.blockedPINs.contains(currentPin) { + if pinCodePreferences.notAllowedPINs.contains(currentPin) { viewMode = .blockedPin update(viewState: .blockedPin) return diff --git a/Riot/Modules/SetPinCode/PinCodePreferences.swift b/Riot/Modules/SetPinCode/PinCodePreferences.swift index 40a6b8427..8cbe2d611 100644 --- a/Riot/Modules/SetPinCode/PinCodePreferences.swift +++ b/Riot/Modules/SetPinCode/PinCodePreferences.swift @@ -51,9 +51,9 @@ final class PinCodePreferences: NSObject { return BuildSettings.forcePinProtection } - /// Blocked pin codes. User won't be able to select one of the pin in the list. - var blockedPINs: [String] { - return BuildSettings.blockedPINs + /// Not allowed pin codes. User won't be able to select one of the pin in the list. + var notAllowedPINs: [String] { + return BuildSettings.notAllowedPINs } var isBiometricsAvailable: Bool {