[ios] Switched OSM Oauth to using a link

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-06-24 16:39:25 +02:00
committed by Konstantin Pastbin
parent 126d4f6373
commit 090b7c21fc
11 changed files with 98 additions and 25 deletions

View File

@@ -86,7 +86,8 @@ using namespace osm_auth_ios;
{
[self performOnlineAction:^
{
[self performSegueWithIdentifier:kOSMAuthSegue sender:self.loginOSMButton];
[self openUrl:@(OsmOAuth::ServerAuth().BuildOAuth2Url().c_str()) externally:NO skipEncoding:YES];
}];
}
@@ -94,7 +95,7 @@ using namespace osm_auth_ios;
{
[self performOnlineAction:^
{
[self openUrl:@(OsmOAuth::ServerAuth().GetRegistrationURL().c_str())];
[self openUrl:@(OsmOAuth::ServerAuth().GetRegistrationURL().c_str()) externally:YES];
}];
}