fix create account by sha256

This commit is contained in:
Danmei Chen 2019-11-04 17:37:47 +01:00
parent 1546c34b75
commit 88da8d4e0b
2 changed files with 7 additions and 1 deletions

View file

@ -174,6 +174,13 @@ static UICompositeViewDescription *compositeDescription = nil;
- (void)loadAssistantConfig:(NSString *)rcFilename {
linphone_core_load_config_from_xml(LC,
[LinphoneManager bundleFile:rcFilename].UTF8String);
if (account_creator) {
// Below two settings are applied to account creator when it is built.
// Reloading Core config after won't change the account creator configuration,
// hence the manual reload
linphone_account_creator_set_domain(account_creator, [[LinphoneManager.instance lpConfigStringForKey:@"domain" inSection:@"assistant" withDefault:@""] UTF8String]);
linphone_account_creator_set_algorithm(account_creator, [[LinphoneManager.instance lpConfigStringForKey:@"algorithm" inSection:@"assistant" withDefault:@""] UTF8String]);
}
[self changeView:nextView back:FALSE animation:TRUE];
}

View file

@ -21,7 +21,6 @@
<section name="assistant">
<entry name="domain" overwrite="true"></entry>
<entry name="algorithm" overwrite="true">SHA-256</entry>
<entry name="password_max_length" overwrite="true">-1</entry>
<entry name="password_min_length" overwrite="true">-1</entry>
<entry name="username_length" overwrite="true">-1</entry>