Removed iCloud + added generated login names.
[REMOVED] UbiquityStoreManager and iCloud support. Now using simplified local Core Data store logic. [ADDED] Generating site login names. [IMPROVED] Some refactoring and interface improvements for optionally generated user names.
This commit is contained in:
@@ -173,7 +173,7 @@ static NSDictionary *keyQuery(MPUserEntity *user) {
|
||||
for (MPElementEntity *element in user.elements) {
|
||||
if (element.type & MPElementTypeClassStored) {
|
||||
NSString *content;
|
||||
while (!(content = [element.algorithm storedContentForElement:(MPElementStoredEntity *)element usingKey:recoverKey])) {
|
||||
while (!(content = [element.algorithm storedPasswordForElement:(MPElementStoredEntity *)element usingKey:recoverKey])) {
|
||||
// Failed to decrypt element with the current recoveryKey. Ask user for a new one to use.
|
||||
__block NSString *masterPassword = nil;
|
||||
|
||||
@@ -210,7 +210,7 @@ static NSDictionary *keyQuery(MPUserEntity *user) {
|
||||
break;
|
||||
|
||||
if (![recoverKey isEqualToKey:newKey])
|
||||
[element.algorithm saveContent:content toElement:element usingKey:newKey];
|
||||
[element.algorithm savePassword:content toElement:element usingKey:newKey];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user