Fixed: userService and profileService
This commit is contained in:
parent
c7b2d48bc4
commit
f0c89771f5
|
|
@ -53,6 +53,7 @@ open class BaseUserService {
|
|||
open class func clearData() {
|
||||
UserDefaults.standard.sessionId = nil
|
||||
UserDefaults.standard.userLogin = nil
|
||||
UserDefaults.standard.synchronize()
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ public class TouchIDService {
|
|||
return LAContext()
|
||||
}()
|
||||
|
||||
public init() {}
|
||||
|
||||
public var canAuthenticateByTouchId: Bool {
|
||||
return laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue