diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2011-10-03 10:43:23 +0300 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-10-05 11:40:10 +0200 |
commit | cd4395515325329b70a16c333f9e1a7ebe0a861e (patch) | |
tree | 97d5b97a5b05d2de42f148e1a1088f130995431a | |
parent | c0af24236c453c222e28f84063dc320ed0396bfd (diff) | |
download | connman-cd4395515325329b70a16c333f9e1a7ebe0a861e.tar.gz connman-cd4395515325329b70a16c333f9e1a7ebe0a861e.tar.bz2 connman-cd4395515325329b70a16c333f9e1a7ebe0a861e.zip |
wispr: Setting the relevant service property when a login is required
When a wispr redirect occurs we set login required to the service
Fixes BMC#23424
-rw-r--r-- | src/wispr.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wispr.c b/src/wispr.c index 8a9e8eb5..1f470f7c 100644 --- a/src/wispr.c +++ b/src/wispr.c @@ -482,9 +482,11 @@ static gboolean wispr_manage_message(GWebResult *result, wp_context->wispr_result = CONNMAN_WISPR_RESULT_LOGIN; - __connman_agent_request_login_input(wp_context->service, + if (__connman_agent_request_login_input(wp_context->service, wispr_portal_request_wispr_login, - wp_context); + wp_context) != -EIO) + wispr_portal_error(wp_context); + break; case 120: /* Falling down */ case 140: @@ -568,6 +570,8 @@ static gboolean wispr_portal_web_result(GWebResult *result, gpointer user_data) DBG("Redirect URL: %s", redirect); + __connman_service_request_login(wp_context->service); + wp_context->request_id = g_web_request_get(wp_context->web, redirect, wispr_portal_web_result, wp_context); |