aboutsummaryrefslogtreecommitdiffhomepage
path: root/Example
diff options
context:
space:
mode:
authorGravatar Zsika Phillip <protocol86@users.noreply.github.com>2018-04-07 23:59:33 -0700
committerGravatar GitHub <noreply@github.com>2018-04-07 23:59:33 -0700
commit21a6e1f930936eae1bca743430347288fa5e39c8 (patch)
treee3c6e52c5a4c74e200b7a5a7f7bc7d261c2add93 /Example
parent6ea2af1564be17feb258926732650d4b9b984ce7 (diff)
Minor enhancements (#1041)
* Minor enhancements * addresses comment
Diffstat (limited to 'Example')
-rw-r--r--Example/Auth/Sample/MainViewController.m11
1 files changed, 6 insertions, 5 deletions
diff --git a/Example/Auth/Sample/MainViewController.m b/Example/Auth/Sample/MainViewController.m
index e343508..d4915cd 100644
--- a/Example/Auth/Sample/MainViewController.m
+++ b/Example/Auth/Sample/MainViewController.m
@@ -429,10 +429,10 @@ static NSString *const kRemoveIDTokenListenerTitle = @"Remove Last ID Token Chan
*/
static NSString *const kSectionTitleApp = @"APP";
-/** @var kUpdateCurrentUserFromSavedTitle
- @brief The text of the "Upgrade to saved user" button.
+/** @var kSwitchToInMemoryUserTitle
+ @brief The text of the "Switch to in memory user" button.
*/
-static NSString *const kUpdateCurrentUserFromSavedTitle = @"Upgrade to saved user";
+static NSString *const kSwitchToInMemoryUserTitle = @"Switch to in memory user";
/** @var kCreateUserTitle
@brief The text of the "Create User" button.
@@ -750,7 +750,7 @@ typedef enum {
}],
]],
[StaticContentTableViewSection sectionWithTitle:kSectionTitleSignIn cells:@[
- [StaticContentTableViewCell cellWithTitle:kUpdateCurrentUserFromSavedTitle
+ [StaticContentTableViewCell cellWithTitle:kSwitchToInMemoryUserTitle
value:nil
action:^{ [weakSelf updateToSavedUser]; }],
[StaticContentTableViewCell cellWithTitle:kCreateUserTitle
@@ -2762,7 +2762,8 @@ static NSDictionary<NSString *, NSString *> *parseURL(NSString *urlString) {
}
if (!_userInMemory) {
- NSLog(@"You need an in memory user to perform this action");
+ [self showMessagePrompt:[NSString stringWithFormat:@"You need an in-memory user to perform this"
+ "action, use the M+ button to save a user to memory.", nil]];
return;
}