mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-24 22:58:13 +00:00
fix(account_creator): check activation code only if a phone number is used in activate
This commit is contained in:
parent
145b15c271
commit
e6d71d722d
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ static void _activate_account_cb_custom(LinphoneXmlRpcRequest *request) {
|
|||
LinphoneAccountCreatorStatus linphone_account_creator_activate_account_linphone(LinphoneAccountCreator *creator) {
|
||||
LinphoneXmlRpcRequest *request;
|
||||
char *identity = _get_identity(creator);
|
||||
if (!identity || !creator->activation_code) {
|
||||
if (!identity || (creator->phone_number && !creator->activation_code)) {
|
||||
if (creator->cbs->is_account_activated_response_cb != NULL) {
|
||||
creator->cbs->is_account_activated_response_cb(creator, LinphoneAccountCreatorStatusMissingArguments, "Missing required parameters");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue