Commit f6844d70 authored by Sylvain Berfini's avatar Sylvain Berfini

Use plain text password instead of ha1

parent 0eff421c
......@@ -11,6 +11,7 @@ register_only_when_network_is_up=1
auto_net_state_mon=0
keepalive_period=30000
ping_with_options=0
store_ha1_passwd=0
[rtp]
audio_jitt_comp=60
......
......@@ -296,7 +296,7 @@ namespace Linphone.Model
{
SIPAccountSettingsManager sip = new SIPAccountSettingsManager();
sip.Load();
server.LinphoneCore.GetDefaultProxyConfig().SetContactParameters("pwd=" + sip.DisplayName + ";app-id=" + host + ";pn-type=wp;pn-tok=" + token);
server.LinphoneCore.GetDefaultProxyConfig().SetContactParameters("pwd=" + sip.Password + ";app-id=" + host + ";pn-type=wp;pn-tok=" + token);
}
else
{
......
......@@ -65,11 +65,6 @@
x:Name="Password"
KeyDown="Password_KeyDown">
</PasswordBox>
<Button
x:Name="EditPassword"
Click="EditPassword_Click"
Visibility="Collapsed"
Content="{Binding Path=LocalizedResources.EditPassword, Source={StaticResource LocalizedStrings}}"/>
</StackPanel>
<StackPanel Orientation="Vertical" Grid.Row="2" Margin="0,10,0,0">
......
......@@ -32,13 +32,6 @@ namespace Linphone.Views
Proxy.Text = _settings.Proxy;
OutboundProxy.IsChecked = _settings.OutboundProxy;
DisplayName.Text = _settings.DisplayName;
if (Username.Text.Length > 0)
{
_editPassword = false;
Password.Visibility = Visibility.Collapsed;
EditPassword.Visibility = Visibility.Visible;
}
}
/// <summary>
......@@ -59,8 +52,7 @@ namespace Linphone.Views
private void save_Click_1(object sender, EventArgs e)
{
_settings.Username = Username.Text;
if (_editPassword)
_settings.Password = Password.Password;
_settings.Password = Password.Password;
_settings.Domain = Domain.Text;
_settings.Proxy = Proxy.Text;
_settings.OutboundProxy = OutboundProxy.IsChecked;
......@@ -108,13 +100,5 @@ namespace Linphone.Views
if (e.Key == Key.Enter)
DisplayName.Focus();
}
private void EditPassword_Click(object sender, System.Windows.RoutedEventArgs e)
{
_editPassword = true;
Password.Password = "";
Password.Visibility = Visibility.Visible;
EditPassword.Visibility = Visibility.Collapsed;
}
}
}
\ No newline at end of file
linphone @ 461baa0e
Subproject commit 9752a9c3e8ec1edf61f64105d191712f71b63f5c
Subproject commit 461baa0e2820334905b4b0c03fa7bb3ab6fac8dc
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment