mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
feat: add JWT Support to MDM and refacture (MESSENGER-6162)
This commit is contained in:
@@ -978,17 +978,7 @@
|
||||
|
||||
if (sender == _submitButton)
|
||||
{
|
||||
if (BWIBuildSettings.shared.bwiEnableLoginProtection) {
|
||||
LoginProtectionService* service = [[LoginProtectionService alloc] init];
|
||||
service.hashes = BWIBuildSettings.shared.bwiHashes;
|
||||
if (![service isValid:self->mxRestClient.homeserver]) {
|
||||
NSError *error = [[NSError alloc] initWithDomain:@"LoginProtectionError" code:0 userInfo:@{
|
||||
NSLocalizedDescriptionKey: [BWIL10n bwiLoginProtectionErrorMessage:AppInfo.current.displayName]}];
|
||||
[self onFailureDuringAuthRequest:error];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Disable user interaction to prevent multiple requests
|
||||
self.userInteractionEnabled = NO;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user