|
From: | Darrick Leom Ming Xian |
Subject: | [Linphone-users] Retrieve password |
Date: | Thu, 17 Jun 2010 11:38:54 +0800 |
Dear all,
I'm was wondering on the 'Authentication required'
box which popped up usually after a disconnection, can the previous password
regenerate at the password entry slot, just like what happened in the username
entry slot?
I wanted to change this function found in
main.c:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
static void linphone_gtk_auth_info_requested(LinphoneCore *lc, const char *realm, const char *username){ GtkWidget *w=linphone_gtk_create_window("password"); GtkWidget *label=linphone_gtk_get_widget(w,"message"); LinphoneAuthInfo *info; gchar *msg; GtkWidget *mw=linphone_gtk_get_main_window(); if (mw && GTK_WIDGET_VISIBLE(linphone_gtk_get_widget(mw,"login_frame"))){ /*don't prompt for authentication when login frame is visible*/ linphone_core_abort_authentication(lc,NULL); return; } msg=g_strdup_printf(_("Please enter your password for username <i>%s</i>\n at domain <i>%s</i>:"), username,realm); gtk_label_set_markup(GTK_LABEL(label),msg); g_free(msg); gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"userid_entry")),username); gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(w,"password_entry")),""12345678); info=linphone_auth_info_new(username, NULL, NULL, NULL,realm); g_object_set_data(G_OBJECT(w),"auth_info",info); g_object_weak_ref(G_OBJECT(w),(GWeakNotify)linphone_auth_info_destroy,info); gtk_widget_show(w); auth_timeout_new(w); } -------------------------------------------------------------------------------------------------------- Instead of "12345678", I want to retrieve the real password from %appdata%\linphonerc. Any idea? Thanks in advance.
Regards, Darrick Leom |
[Prev in Thread] | Current Thread | [Next in Thread] |