Registration: Use a key for the Vector web app URL. This key is for the develop version. There will be another when the prod version of https://vector.im will exist

This commit is contained in:
manuroe
2016-04-21 11:03:44 +02:00
parent a043a4ca81
commit ec96a6ac6f
2 changed files with 7 additions and 2 deletions
+5 -2
View File
@@ -277,8 +277,11 @@
submittedEmail = [[MXK3PID alloc] initWithMedium:kMX3PIDMediumEmail andAddress:self.emailTextField.text];
// Create the next link that is common to all Vector.im clients
// FIXME: /develop/ is not nice here
NSString *nextLink = [NSString stringWithFormat:@"https://vector.im/develop/#/register?client_secret=%@&hs_url=%@&is_url=%@&session_id=%@",
// FIXME: When available, use the prod Vector web app URL
NSString *webAppUrl = [[NSUserDefaults standardUserDefaults] objectForKey:@"webAppUrlDev"];
NSString *nextLink = [NSString stringWithFormat:@"%@/#/register?client_secret=%@&hs_url=%@&is_url=%@&session_id=%@",
webAppUrl,
[submittedEmail.clientSecret stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],
[restClient.homeserver stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],
[restClient.identityServer stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],