- Fixed NewSecret/NewKey context-menu functionality.

- Mandate the minimum length of MasterPassword to eight characters.
- Updated CASAManager.sh to export MONO_PATH.
This commit is contained in:
smanojna 2005-10-20 12:58:19 +00:00
parent 442b47d954
commit f2196fe5d1
4 changed files with 6163 additions and 6187 deletions

View File

@ -25,15 +25,15 @@ using Microsoft.Win32;
public class CasaMain
{
public MiCasa objMiCasa = null;
public Firefox objFirefox = null;
public Mozilla objMozilla = null;
public MiCasa objMiCasa = null;
public Firefox objFirefox = null;
public Mozilla objMozilla = null;
public KdeWallet objKdeWallet = null;
public GnomeKeyring objGnomeKeyring = null;
public static Glade.XML gxml;
int loginPromptCount = 3;
int loginPromptCount = 3;
#region Glade Widgets
@ -298,7 +298,7 @@ public class CasaMain
if( true == entryMasterPassword4.Visible )
{
if(entryMasterPassword3.Text != "" && (entryMasterPassword3.Text == entryMasterPassword4.Text))
if(entryMasterPassword3.Text != "" && (entryMasterPassword3.Text == entryMasterPassword4.Text) && entryMasterPassword3.Text.Length >= 8)
{
miCASA.SetMasterPassword(0, entryMasterPassword3.Text);
MiCasaRequestReply.Send(MiCasaRequestReply.VERB_UNLOCK_STORE, entryMasterPassword3.Text);
@ -724,8 +724,8 @@ public class CasaMain
}
///#######################################################################
/// UI handling
///#######################################################################
/// UI handling
public void OnLockMiCASASecrets(object sender, EventArgs args)
{
@ -1095,8 +1095,8 @@ public class CasaMain
md.Show();
}
private void md_Response(object o, ResponseArgs args)
{
private void md_Response(object o, ResponseArgs args)
{
if (args.ResponseId.Equals(Gtk.ResponseType.Yes))
{
@ -1120,7 +1120,7 @@ public class CasaMain
if (md != null)
{
md.Destroy();
}
}
}
///#######################################################################
@ -1230,7 +1230,7 @@ public class CasaMain
internal void Focus()
{
windowMain.Present();
}
}
}
}
///###########################################################################

View File

@ -63,7 +63,8 @@ public class GnomeKeyring : Store
buttonNewRemove,
buttonManageOk;
[Glade.Widget]
Gtk.MenuItem cmiNew,
Gtk.MenuItem cmiNewSecret,
cmiNewKey,
cmiDelete,
cmiView,
cmiLink,
@ -187,9 +188,9 @@ public class GnomeKeyring : Store
gxmlTemp.Autoconnect (this);
menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime);
if( 0 != tvSecretIDGnomeKeyring.Selection.CountSelectedRows() )
cmiNew.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
else
cmiNew.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
}
catch(Exception exp)
{

View File

@ -62,7 +62,8 @@ public class KdeWallet : Store
buttonManageOk;
[Glade.Widget]
Gtk.MenuItem cmiNew,
Gtk.MenuItem cmiNewSecret,
cmiNewKey,
cmiDelete,
cmiView,
cmiLink,
@ -186,9 +187,9 @@ public class KdeWallet : Store
menuRightClick.Popup(null, null, null, IntPtr.Zero, 3, Gtk.Global.CurrentEventTime);
if( 0 != tvSecretIDKdeWallet.Selection.CountSelectedRows() )
cmiNew.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
else
cmiNew.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
cmiNewSecret.Sensitive = cmiNewKey.Sensitive = cmiView.Sensitive = cmiLink.Sensitive = cmiCopy.Sensitive = cmiDelete.Sensitive = false;
}
catch(Exception exp)
{

File diff suppressed because it is too large Load Diff