Try to simply notify the user when authentication works
This commit is contained in:
parent
aef0004ed8
commit
8e44b858c9
10
src/phone.c
10
src/phone.c
@ -4066,9 +4066,15 @@ static void _modem_event_authentication(Phone * phone, ModemEvent * event)
|
|||||||
phone_code_clear(phone);
|
phone_code_clear(phone);
|
||||||
if(name == NULL)
|
if(name == NULL)
|
||||||
break;
|
break;
|
||||||
/* FIXME turn this into a simple notification */
|
|
||||||
snprintf(buf, sizeof(buf), _("%s is valid"), name);
|
snprintf(buf, sizeof(buf), _("%s is valid"), name);
|
||||||
_phone_info(phone, phone->en_window, buf, callback);
|
if(phone_event_type(phone,
|
||||||
|
PHONE_EVENT_TYPE_NOTIFICATION,
|
||||||
|
PHONE_NOTIFICATION_TYPE_INFO,
|
||||||
|
NULL, buf) != 0)
|
||||||
|
phone_show_code(phone, FALSE);
|
||||||
|
else
|
||||||
|
_phone_info(phone, phone->en_window, buf,
|
||||||
|
callback);
|
||||||
break;
|
break;
|
||||||
case MODEM_AUTHENTICATION_STATUS_REQUIRED:
|
case MODEM_AUTHENTICATION_STATUS_REQUIRED:
|
||||||
if(event->authentication.method
|
if(event->authentication.method
|
||||||
|
Loading…
Reference in New Issue
Block a user