Merge remote-tracking branch 'origin/develop' into auth_forgot_password

This commit is contained in:
giomfo
2016-05-09 15:44:23 +02:00
15 changed files with 324 additions and 76 deletions
+2 -4
View File
@@ -17,6 +17,7 @@
#import "AuthInputsView.h"
#import "VectorDesignValues.h"
#import "Tools.h"
@interface AuthInputsView ()
{
@@ -332,11 +333,8 @@
submittedEmail = [[MXK3PID alloc] initWithMedium:kMX3PIDMediumEmail andAddress:self.emailTextField.text];
// Create the next link that is common to all Vector.im clients
// 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,
[Tools webAppUrl],
[submittedEmail.clientSecret stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],
[restClient.homeserver stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],
[restClient.identityServer stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]],