Commit 45096628 authored by Thomas Markiewicz's avatar Thomas Markiewicz

Per Apple rejection, updated Register and Forgot Passphrase links to open with...

Per Apple rejection, updated Register and Forgot Passphrase links to open with Safari View Controller instead of Safari browser directly
parent 79629ec2
Pipeline #36583 passed with stage
in 22 minutes and 43 seconds
......@@ -172,4 +172,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 96875f11533e29f46f651b1d838ffc005d70f6ad
COCOAPODS: 1.8.0
COCOAPODS: 1.8.1
......@@ -24,6 +24,7 @@
#import "AuthInputsView.h"
#import "ForgotPasswordInputsView.h"
#import "AuthFallBackViewController.h"
#import <SafariServices/SafariServices.h>
@interface AuthenticationViewController () <AuthFallBackViewControllerDelegate>
{
......@@ -675,14 +676,16 @@
}
else if (sender == self.registerButton) {
NSURL *url = [NSURL URLWithString:@"https://librem.one"];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
SFSafariViewController *svc = [[SFSafariViewController alloc] initWithURL:url];
[self presentViewController:svc animated:YES completion:nil];
}
else if (sender == self.forgotPasswordButton)
{
// Update UI to reset password
#ifdef LIBREMONE
NSURL *url = [NSURL URLWithString:@"https://librem.one/accounts/recover"];
[[UIApplication sharedApplication] openURL:url options:@{} completionHandler:nil];
SFSafariViewController *svc = [[SFSafariViewController alloc] initWithURL:url];
[self presentViewController:svc animated:YES completion:nil];
#else
self.authType = MXKAuthenticationTypeForgotPassword;
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment