mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Allow re-creation of account only if the username is the phone number
This commit is contained in:
parent
19e9a73c85
commit
bdd24f1b38
1 changed files with 8 additions and 3 deletions
|
|
@ -861,10 +861,15 @@ void assistant_is_account_activated(LinphoneAccountCreator *creator, LinphoneAcc
|
|||
[thiz findButton:ViewElement_NextButton].enabled = NO;
|
||||
} else if (status == LinphoneAccountCreatorAccountNotActivated) {
|
||||
if (!IPAD || linphone_account_creator_get_phone_number(creator) != NULL) {
|
||||
//Re send SMS
|
||||
linphone_account_creator_recover_phone_account(creator);
|
||||
//Re send SMS if the username is the phone number
|
||||
if (linphone_account_creator_get_username(creator) != linphone_account_creator_get_phone_number(creator) && linphone_account_creator_get_username(creator) != NULL) {
|
||||
[thiz showErrorPopup:"ERROR_ACCOUNT_ALREADY_IN_USE"];
|
||||
[thiz findButton:ViewElement_NextButton].enabled = NO;
|
||||
} else {
|
||||
linphone_account_creator_recover_phone_account(creator);
|
||||
}
|
||||
} else {
|
||||
// TO DO : Re send email
|
||||
// TO DO : Re send email ?
|
||||
[thiz showErrorPopup:"ERROR_ACCOUNT_ALREADY_IN_USE"];
|
||||
[thiz findButton:ViewElement_NextButton].enabled = NO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue