mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 07:28:28 +02:00
MESSENGER-2762 Initial Merge
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
//
|
||||
// Copyright 2020 New Vector Ltd
|
||||
// Copyright (c) 2021 BWI GmbH
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
@@ -39,9 +40,13 @@ final class BiometricsAuthenticationPresenter: NSObject {
|
||||
guard !BiometricsAuthenticationPresenter.isPresenting else {
|
||||
return
|
||||
}
|
||||
BiometricsAuthenticationPresenter.isPresenting = true
|
||||
|
||||
LAContext().evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: message) { (success, error) in
|
||||
BiometricsAuthenticationPresenter.isPresenting = true
|
||||
|
||||
let context = LAContext()
|
||||
context.localizedFallbackTitle = NSLocalizedString("biometrics_mode_cant_unlock_button_title", tableName: "Vector", comment: "")
|
||||
|
||||
context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: message) { (success, error) in
|
||||
if success {
|
||||
// Complete after a little delay
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
|
||||
|
||||
Reference in New Issue
Block a user