From 245f7fb5f9a8b0ec048a85cd69a5c8b83bf5f997 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Thu, 20 Aug 2020 14:41:24 +0300 Subject: [PATCH] Avoid email validation link to redirect to web app --- .../Modules/Authentication/Views/AuthInputsView.m | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Riot/Modules/Authentication/Views/AuthInputsView.m b/Riot/Modules/Authentication/Views/AuthInputsView.m index 62ce77156..d944b017d 100644 --- a/Riot/Modules/Authentication/Views/AuthInputsView.m +++ b/Riot/Modules/Authentication/Views/AuthInputsView.m @@ -665,22 +665,9 @@ NSString *identityServer = restClient.identityServer; - // Create the next link that is common to all Vector.im clients - NSString *nextLink = [NSString stringWithFormat:@"%@/#/register?client_secret=%@&hs_url=%@&session_id=%@", - BuildSettings.applicationWebAppUrlString, - [self->submittedEmail.clientSecret stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]], - [restClient.homeserver stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]], - [self->currentSession.session stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; - - if (identityServer) - { - nextLink = [NSString stringWithFormat:@"%@&is_url=%@", nextLink, - [identityServer stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; - } - [self->submittedEmail requestValidationTokenWithMatrixRestClient:restClient isDuringRegistration:YES - nextLink:nextLink + nextLink:nil success:^ { NSMutableDictionary *threepidCreds = [NSMutableDictionary dictionaryWithDictionary:@{