[ios] Added open Safari on password recovery.

This commit is contained in:
Ilya Grechuhin 2016-01-26 12:10:25 +03:00 committed by Sergey Yershov
parent 9bb2684816
commit a3893744f0

View file

@ -164,6 +164,13 @@ using namespace osm;
[self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)forgotPassword
{
OsmOAuth const auth = OsmOAuth::ServerAuth();
NSURL * url = [NSURL URLWithString:@(auth.GetResetPasswordURL().c_str())];
[[UIApplication sharedApplication] openURL:url];
}
#pragma mark - Properties
- (void)setIsCorrect:(MWMFieldCorrect)isCorrect