moonshot-ui.git
7 years agoAlways print GLib errors to the log as well as stderr
Dan Breslau [Sat, 20 Aug 2016 01:47:33 +0000 (21:47 -0400)]
Always print GLib errors to the log as well as stderr

7 years agoFixed display of the no_identity widget, and don't allow it to be removed
Dan Breslau [Fri, 19 Aug 2016 21:50:31 +0000 (17:50 -0400)]
Fixed display of the no_identity widget, and don't allow it to be removed

7 years agoAdded additional test IDs
Dan Breslau [Fri, 19 Aug 2016 18:23:38 +0000 (14:23 -0400)]
Added additional test IDs

7 years agoFixed bugs in tracking TrustAnchor datetime-added
Dan Breslau [Fri, 19 Aug 2016 18:23:19 +0000 (14:23 -0400)]
Fixed bugs in tracking TrustAnchor datetime-added

7 years agoFirst pass at supporting date/time added for Trust Anchors
Dan Breslau [Fri, 19 Aug 2016 17:16:24 +0000 (13:16 -0400)]
First pass at supporting date/time added for Trust Anchors

7 years agoAdded libssl as a dependency
Dan Breslau [Thu, 18 Aug 2016 15:27:18 +0000 (11:27 -0400)]
Added libssl as a dependency

7 years agoUgly hack to make the Yes button grab the default
Dan Breslau [Wed, 17 Aug 2016 23:15:15 +0000 (19:15 -0400)]
Ugly hack to make the Yes button grab the default

7 years agoIntercept window close attempts, and ask user to confirm if selection is in progress
Dan Breslau [Wed, 17 Aug 2016 22:18:07 +0000 (18:18 -0400)]
Intercept window close attempts, and ask user to confirm if selection is in progress

7 years agoAdded right- or down-pointing arrow (for unselected and selected cards, respectively)
Dan Breslau [Tue, 16 Aug 2016 22:26:23 +0000 (18:26 -0400)]
Added right- or down-pointing arrow (for unselected and selected cards, respectively)

7 years agoUse the label text 'Do not use a Moonshot identity for this service' if displaying...
Dan Breslau [Tue, 16 Aug 2016 21:45:46 +0000 (17:45 -0400)]
Use the label text 'Do not use a Moonshot identity for this service' if displaying the ID Selector for ID selection

7 years agoFixed line lengths for exporting PEM certificates.
Dan Breslau [Tue, 16 Aug 2016 16:54:45 +0000 (12:54 -0400)]
Fixed line lengths for exporting PEM certificates.

Also set default filename based on IdCard's display name,
and go to the same directory by default if another cert is exported.

7 years agoSupport exporting certificates in PEM format
Dan Breslau [Tue, 16 Aug 2016 00:52:40 +0000 (20:52 -0400)]
Support exporting certificates in PEM format

7 years agoDecode the CA Certificate from binary, not from PEM format.
Dan Breslau [Tue, 16 Aug 2016 00:12:19 +0000 (20:12 -0400)]
Decode the CA Certificate from binary, not from PEM format.

7 years agoFixed memory leaks
Dan Breslau [Mon, 15 Aug 2016 23:23:28 +0000 (19:23 -0400)]
Fixed memory leaks

7 years agoImplemented "Clear Trust Anchor" button in Edit Identity Dialog.
Dan Breslau [Mon, 15 Aug 2016 19:24:24 +0000 (15:24 -0400)]
Implemented "Clear Trust Anchor" button in Edit Identity Dialog.

Modified the "user verified" flag to be stored in the keystore (or local
flat file), instead of in a Properties file.

Modified the TrustAnchor class to be read-only, other than the "user_verified"
field.

Many logging updates.

7 years agoFixed compilation error and error handling.
Dan Breslau [Fri, 12 Aug 2016 19:32:37 +0000 (15:32 -0400)]
Fixed compilation error and error handling.

7 years agoSupport decrypting a server CA certificate so we can get its expiration (valid-before...
Dan Breslau [Fri, 12 Aug 2016 02:44:21 +0000 (22:44 -0400)]
Support decrypting a server CA certificate so we can get its expiration (valid-before) date.

7 years agoDon't show 'Trust anchor: None' label for new IdCards
Dan Breslau [Thu, 11 Aug 2016 18:08:27 +0000 (14:08 -0400)]
Don't show 'Trust anchor: None' label for new IdCards

7 years agoFirst pass at supporting trust anchors in IdCard dialog
Dan Breslau [Thu, 11 Aug 2016 02:07:01 +0000 (22:07 -0400)]
First pass at supporting trust anchors in IdCard dialog

7 years agoMinor updates to trust anchor management
Dan Breslau [Wed, 10 Aug 2016 19:32:42 +0000 (15:32 -0400)]
Minor updates to trust anchor management

7 years agoFixed some minor UI issues
Dan Breslau [Wed, 10 Aug 2016 19:03:53 +0000 (15:03 -0400)]
Fixed some minor UI issues

7 years agoUpdated About dialog; also bumped version number to 1.0.0
Dan Breslau [Tue, 9 Aug 2016 23:57:13 +0000 (19:57 -0400)]
Updated About dialog; also bumped version number to 1.0.0

7 years agoFirst cut at supporting trust anchors
Dan Breslau [Tue, 9 Aug 2016 23:14:50 +0000 (19:14 -0400)]
First cut at supporting trust anchors

7 years agoFix appearance of services table
Dan Breslau [Tue, 9 Aug 2016 16:45:25 +0000 (12:45 -0400)]
Fix appearance of services table

7 years agoRe-enable password hiding
Dan Breslau [Tue, 9 Aug 2016 16:05:27 +0000 (12:05 -0400)]
Re-enable password hiding

7 years agoRefactored the IdCard services list to fix new bugs and (hopefully) prevent even...
Dan Breslau [Tue, 9 Aug 2016 01:34:09 +0000 (21:34 -0400)]
Refactored the IdCard services list to fix new bugs and (hopefully) prevent even newer ones.

7 years agoSupport using libgee in moonshot-webp
Dan Breslau [Mon, 8 Aug 2016 20:42:54 +0000 (16:42 -0400)]
Support using libgee in moonshot-webp

7 years agoDisallow editing the text fields of the No Identity card
Dan Breslau [Mon, 8 Aug 2016 18:46:04 +0000 (14:46 -0400)]
Disallow editing the text fields of the No Identity card

7 years agoChanged IdCard.IsNoIdentity to IdCard.is_no_identity
Dan Breslau [Mon, 8 Aug 2016 18:45:42 +0000 (14:45 -0400)]
Changed IdCard.IsNoIdentity to IdCard.is_no_identity

7 years agoImplemented 'Remember my identity choice for this service' checkbox on main selector...
Dan Breslau [Mon, 8 Aug 2016 18:24:34 +0000 (14:24 -0400)]
Implemented 'Remember my identity choice for this service' checkbox on main selector dialog

7 years agoLogging updates
Dan Breslau [Mon, 8 Aug 2016 18:02:24 +0000 (14:02 -0400)]
Logging updates

7 years agoImplemented 'Do not show this message again' checkbox for warning dialogs
Dan Breslau [Fri, 5 Aug 2016 21:12:34 +0000 (17:12 -0400)]
Implemented 'Do not show this message again' checkbox for warning dialogs

7 years agoFixed (again) how the Add, Edit, Remove, and Send buttons are enabled/disabled
Dan Breslau [Fri, 5 Aug 2016 21:07:46 +0000 (17:07 -0400)]
Fixed (again) how the Add, Edit, Remove, and Send buttons are enabled/disabled

7 years agoFixed (again) how the Add, Edit, Remove, and Send buttons are enabled/disabled
Dan Breslau [Fri, 5 Aug 2016 21:01:17 +0000 (17:01 -0400)]
Fixed (again) how the Add, Edit, Remove, and Send buttons are enabled/disabled

7 years agoCode cleanup
Dan Breslau [Fri, 5 Aug 2016 19:23:27 +0000 (15:23 -0400)]
Code cleanup

7 years agoCode cleanup
Dan Breslau [Fri, 5 Aug 2016 19:22:46 +0000 (15:22 -0400)]
Code cleanup

7 years agoCode cleanup
Dan Breslau [Fri, 5 Aug 2016 19:19:50 +0000 (15:19 -0400)]
Code cleanup

7 years agoUpdated the appearance of two warning dialogs.
Dan Breslau [Fri, 5 Aug 2016 00:46:55 +0000 (20:46 -0400)]
Updated the appearance of two warning dialogs.
Also fixed (somewhat) the appearance of the menu bar in the main window.

7 years agoFixing AtkRelation and remember password checkbox issues
Dan Breslau [Wed, 3 Aug 2016 17:55:51 +0000 (13:55 -0400)]
Fixing AtkRelation and remember password checkbox issues

7 years agoReskinning the password dialog
Dan Breslau [Wed, 3 Aug 2016 17:52:05 +0000 (13:52 -0400)]
Reskinning the password dialog

7 years agoFix service prompt (again)
Dan Breslau [Tue, 2 Aug 2016 21:32:07 +0000 (17:32 -0400)]
Fix service prompt (again)

7 years agoFix prompting of ID for service
Dan Breslau [Tue, 2 Aug 2016 18:35:01 +0000 (14:35 -0400)]
Fix prompting of ID for service

7 years agoSet background to white, and fix sensitivity of Send button
Dan Breslau [Tue, 2 Aug 2016 16:21:56 +0000 (12:21 -0400)]
Set background to white, and fix sensitivity of Send button

7 years agoRemove unnecessary log message
Dan Breslau [Tue, 2 Aug 2016 16:20:01 +0000 (12:20 -0400)]
Remove unnecessary log message

7 years agoImproved the appearance of the services table
Dan Breslau [Mon, 1 Aug 2016 20:36:29 +0000 (16:36 -0400)]
Improved the appearance of the services table

7 years agoField layout now conforms more closely to wireframes
Dan Breslau [Mon, 1 Aug 2016 16:12:29 +0000 (12:12 -0400)]
Field layout now conforms more closely to wireframes

7 years agoMinor formatting fixes
Dan Breslau [Fri, 29 Jul 2016 00:36:24 +0000 (20:36 -0400)]
Minor formatting fixes

7 years agoDead code removal; also fixed Send button (at least a little; not tested yet.)
Dan Breslau [Thu, 28 Jul 2016 22:23:54 +0000 (18:23 -0400)]
Dead code removal; also fixed Send button (at least a little; not tested yet.)

7 years agoFix compilation with older versions of valac
Dan Breslau [Thu, 28 Jul 2016 17:44:24 +0000 (13:44 -0400)]
Fix compilation with older versions of valac

7 years agoAdd/Edit cards is now functionally complete (still needs aesthetic cleanup)
Dan Breslau [Thu, 28 Jul 2016 01:30:32 +0000 (21:30 -0400)]
Add/Edit cards is now functionally complete (still needs aesthetic cleanup)

7 years agoAs with previous commit, renamed moonshot-add-dialog.vala to moonshot-identity-dialog...
Dan Breslau [Wed, 27 Jul 2016 00:27:45 +0000 (20:27 -0400)]
As with previous commit, renamed moonshot-add-dialog.vala to moonshot-identity-dialog.vala

7 years agoCheckpointing non-working services edit code before I refactor it
Dan Breslau [Wed, 27 Jul 2016 00:26:18 +0000 (20:26 -0400)]
Checkpointing non-working services edit code before I refactor it

7 years agoAs with previous commit, renamed moonshot-add-dialog.vala to moonshot-identity-dialog...
Dan Breslau [Wed, 27 Jul 2016 00:25:14 +0000 (20:25 -0400)]
As with previous commit, renamed moonshot-add-dialog.vala to moonshot-identity-dialog.vala

7 years agoRenamed moonshot-add-dialog.vala to moonshot-identity-dialog.vala; refactoring to...
Dan Breslau [Tue, 26 Jul 2016 17:20:09 +0000 (13:20 -0400)]
Renamed moonshot-add-dialog.vala to moonshot-identity-dialog.vala; refactoring to follow.

7 years agoCheckpointing: ID Selector (main dialog) now looks as specified by reskinning wirefra...
Dan Breslau [Mon, 25 Jul 2016 23:23:46 +0000 (19:23 -0400)]
Checkpointing: ID Selector (main dialog) now looks as specified by reskinning wireframes (more or less)

7 years agoFirst pass at reskinning the main dialog (still need to update menu & detail views)
Dan Breslau [Mon, 25 Jul 2016 01:21:41 +0000 (21:21 -0400)]
First pass at reskinning the main dialog (still need to update menu & detail views)

7 years agoAllow compilation under later versions of valac (fixed empty array initialization)
Dan Breslau [Thu, 21 Jul 2016 20:33:33 +0000 (16:33 -0400)]
Allow compilation under later versions of valac (fixed empty array initialization)

8 years agoMerge branch 'dbreslau-lib-upgrades'
Dan Breslau [Thu, 28 Apr 2016 20:22:20 +0000 (16:22 -0400)]
Merge branch 'dbreslau-lib-upgrades'

https://bugs.launchpad.net/moonshot-ui/+bug/1351342 (We need to support GTK 3.0)
and
https://bugs.launchpad.net/moonshot-ui/+bug/1351342 (Need to support gee-0.8)

Moonshot now builds with Gtk+-3.0 if it's available, and gee-0.8 if it's available. Otherwise, it falls back to the older Gtk+-2.0 and/or gee-0.8.

8 years agoMinor refactoring of XML import code
Dan Breslau [Thu, 28 Apr 2016 20:21:21 +0000 (16:21 -0400)]
Minor refactoring of XML import code

8 years agoFix a compiler warning
Dan Breslau [Thu, 28 Apr 2016 20:17:33 +0000 (16:17 -0400)]
Fix a compiler warning

8 years agoSupport optional logging in webp-provisioning
Dan Breslau [Thu, 28 Apr 2016 19:53:21 +0000 (15:53 -0400)]
Support optional logging in webp-provisioning

8 years agoIgnore more stuff that needs to be ignored
Dan Breslau [Thu, 28 Apr 2016 19:52:01 +0000 (15:52 -0400)]
Ignore more stuff that needs to be ignored

8 years agohttps://bugs.launchpad.net/moonshot-ui/+bug/1351342 (We need to support GTK 3.0) dbreslau-lib-upgrades
Dan Breslau [Thu, 21 Apr 2016 18:58:40 +0000 (14:58 -0400)]
https://bugs.launchpad.net/moonshot-ui/+bug/1351342 (We need to support GTK 3.0)

https://bugs.launchpad.net/moonshot-ui/+bug/1457651 (Need to support gee-0.8)

Use the newer version of these libraries (gtk+-3.0, gee-0.8) or the older
(gtk+-2.0, gee-1.0) depending on what's installed on the host.

8 years agohttps://bugs.launchpad.net/moonshot-ui/+bug/1447008
Dan Breslau [Thu, 7 Apr 2016 15:29:48 +0000 (11:29 -0400)]
https://bugs.launchpad.net/moonshot-ui/+bug/1447008
Moonshot UI window becomes too tall and is not-resizeable

Used ScrolledWindow to add a scrollbar to the services list, and ensured that
the list would still grow vertically if the user expands the window.
Made other changes to ensure that things that should *not* grow vertically on
resise, don't.

Also changed the way the details pane switches between showing No_Identity and
other cards. This eliminated some redundant code that had allowed bugs to
creep in during this effort.

Fixed formatting of the services table when it has a small number of entries.

Removed some unnecessary logging.

8 years agoAdded the MoonshotLogger class, which by default, does nothing. But if the --enable...
Dan Breslau [Tue, 19 Apr 2016 20:16:24 +0000 (16:16 -0400)]
Added the MoonshotLogger class, which by default, does nothing. But if the --enable-log4vala argument is passed on the command line to ../configure, this class wraps the Log4Vala logger (which you must already have installed.)

8 years agohttps://bugs.launchpad.net/moonshot-ui/+bug/1566560 (UI flashes on screen when moonsh...
Dan Breslau [Wed, 6 Apr 2016 17:17:38 +0000 (13:17 -0400)]
https://bugs.launchpad.net/moonshot-ui/+bug/1566560 (UI flashes on screen when moonshot is (re)started on command line)

8 years agoFixed merge error
Dan Breslau [Tue, 5 Apr 2016 02:31:35 +0000 (22:31 -0400)]
Fixed merge error

8 years agoMerge branch 'master' of www.project-moonshot.org:/srv/git/moonshot-ui
Dan Breslau [Tue, 5 Apr 2016 02:29:33 +0000 (22:29 -0400)]
Merge branch 'master' of project-moonshot.org:/srv/git/moonshot-ui

8 years agoMinor formatting changes
Dan Breslau [Tue, 5 Apr 2016 01:50:54 +0000 (21:50 -0400)]
Minor formatting changes

8 years agoThe problem was that simply calling Window.show() doesn't mean that the window
Dan Breslau [Fri, 1 Apr 2016 20:16:38 +0000 (16:16 -0400)]
The problem was that simply calling Window.show() doesn't mean that the window
is brought to the foreground. Actually, there seems to be nothing that
guarantees this, because the user's settings and choice of window manager may
ffect the behavior. However, some research and experimentation shows that
calling these two Window methods

        set_urgency_hint(true);
        present();

may not bring the window to the foreground either, but do at least causes the
user to be notified that the window wants attention, much like the way Windows
may make a taskbar icon flash orange.

8 years agohttps://bugs.launchpad.net/moonshot-ui/+bug/1279798
Dan Breslau [Mon, 4 Apr 2016 17:13:37 +0000 (13:13 -0400)]
https://bugs.launchpad.net/moonshot-ui/+bug/1279798
("UI doesn't take focus when already open")

The problem was that simply calling Window.show() doesn't mean that the window
is brought to the foreground. Actually, there is nothing that guarantees this,
because the user's settings and choice of window manager may affect the
behavior. However, research and experimentation shows that calling these
two Gtk.Window methods:

        set_urgency_hint(true);
        present();

does not bring the window to the foreground either, but does at least cause
the user to be notified that the window wants attention, much like the way
Windows may make a taskbar icon flash orange.

8 years agoThe problem was that simply calling Window.show() doesn't mean that the window dreslau-1279798
Dan Breslau [Fri, 1 Apr 2016 20:16:38 +0000 (16:16 -0400)]
The problem was that simply calling Window.show() doesn't mean that the window
is brought to the foreground. Actually, there seems to be nothing that
guarantees this, because the user's settings and choice of window manager may
ffect the behavior. However, some research and experimentation shows that
calling these two Window methods

        set_urgency_hint(true);
        present();

may not bring the window to the foreground either, but do at least causes the
user to be notified that the window wants attention, much like the way Windows
may make a taskbar icon flash orange.

8 years agoDist libmoonshot.vapi
Sam Hartman [Tue, 14 Jul 2015 19:29:12 +0000 (19:29 +0000)]
Dist libmoonshot.vapi

8 years agoNew version
Sam Hartman [Mon, 13 Jul 2015 19:15:51 +0000 (15:15 -0400)]
New version

8 years agoFix ambiguous references between GLib.ListStore and Gtk.ListStore
Rodolphe PELLOUX-PRAYER [Sun, 7 Jun 2015 17:36:59 +0000 (19:36 +0200)]
Fix ambiguous references between GLib.ListStore and Gtk.ListStore

GLib.ListStore is a new class in GIO and creates a conflict in Vala 0.28

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=787880

9 years agobump release to 2
Kevin Wasserman [Wed, 25 Mar 2015 04:38:36 +0000 (00:38 -0400)]
bump release to 2

9 years agostrip leading and trailing whitespace from cacert on id card load
Kevin Wasserman [Wed, 25 Mar 2015 04:33:38 +0000 (00:33 -0400)]
strip leading and trailing whitespace from cacert on id card load

9 years agoFix conditional logic for using arrays with OutputStream.write
Kevin Wasserman [Tue, 17 Mar 2015 20:16:06 +0000 (16:16 -0400)]
Fix conditional logic for using arrays with OutputStream.write

gio-2.0.vapi switched to arrays with vala 0.11.1

9 years agoAnother array property fix: services
Kevin Wasserman [Mon, 16 Mar 2015 13:30:32 +0000 (09:30 -0400)]
Another array property fix: services

9 years agoWorkaround vala array property bug on centos
Kevin Wasserman [Fri, 13 Mar 2015 22:33:54 +0000 (18:33 -0400)]
Workaround vala array property bug on centos

This should allow rules to save properly on centos keyring

9 years agoFix infinite loop when replacing No Identity card
Kevin Wasserman [Thu, 12 Mar 2015 15:22:54 +0000 (11:22 -0400)]
Fix infinite loop when replacing No Identity card

Don't use the card list accessor that auto-adds 'No Identity' when
adding a card.

9 years agoAdd radius and trustrouter to flatstore users
Sam Hartman [Wed, 8 Oct 2014 15:18:35 +0000 (11:18 -0400)]
Add radius and trustrouter to flatstore users

9 years agoInclude moonshot-gnome-keyring.vapi in dist 0.7.1
Sam Hartman [Wed, 3 Sep 2014 18:44:47 +0000 (14:44 -0400)]
Include moonshot-gnome-keyring.vapi in dist

9 years agoDistribute more files
Sam Hartman [Wed, 3 Sep 2014 18:35:23 +0000 (14:35 -0400)]
Distribute more files

9 years agoRelease 0.7.1 to include upstream copyrights
Sam Hartman [Wed, 3 Sep 2014 18:17:34 +0000 (14:17 -0400)]
Release 0.7.1 to include upstream copyrights

9 years agoAdd copyright to source code
Sam Hartman [Wed, 3 Sep 2014 18:16:50 +0000 (14:16 -0400)]
Add copyright to source code

9 years agoUbuntu compile fix attempt
Kevin Wasserman [Thu, 31 Jul 2014 20:54:08 +0000 (16:54 -0400)]
Ubuntu compile fix attempt

9 years agoFix typo 'Update Pasword' -> 'Update Password'
Kevin Wasserman [Mon, 14 Jul 2014 17:46:11 +0000 (13:46 -0400)]
Fix typo 'Update Pasword' -> 'Update Password'

9 years agofix merge conflict
Sam Hartman [Mon, 23 Jun 2014 16:08:46 +0000 (12:08 -0400)]
fix merge conflict

9 years agoSpecify GLib.Idle to avoid ambiguity with Gtk.Idle on modern vala
Kevin Wasserman [Tue, 17 Jun 2014 16:10:53 +0000 (12:10 -0400)]
Specify GLib.Idle to avoid ambiguity with Gtk.Idle on modern vala

9 years agoUpdate version
Sam Hartman [Tue, 20 May 2014 01:23:14 +0000 (21:23 -0400)]
Update version

9 years agospecfile: include dbus-x11 for dbus-launch
Sam Hartman [Mon, 4 Nov 2013 19:17:45 +0000 (14:17 -0500)]
specfile: include dbus-x11 for dbus-launch

9 years agoAdd 'Update Password' button
Kevin Wasserman [Tue, 20 May 2014 00:08:08 +0000 (20:08 -0400)]
Add 'Update Password' button

When pressed, allows user to enter a new password for the current identity.

10 years agoCentos compile fix
Kevin Wasserman [Mon, 24 Mar 2014 18:50:24 +0000 (14:50 -0400)]
Centos compile fix

10 years agoAvoid using the 'No Identity' card as the default identity. LP 1294559
Kevin Wasserman [Wed, 19 Mar 2014 09:35:20 +0000 (05:35 -0400)]
Avoid using the 'No Identity' card as the default identity. LP 1294559

10 years agoDisplay issuer in details pane. Make all fields uneditable. LP 818128
Kevin Wasserman [Mon, 17 Mar 2014 21:39:35 +0000 (17:39 -0400)]
Display issuer in details pane. Make all fields uneditable. LP 818128

10 years agoRemove code to check for empty issuer and set to "Issuer" LP 1276627
Kevin Wasserman [Mon, 17 Mar 2014 20:02:55 +0000 (16:02 -0400)]
Remove code to check for empty issuer and set to "Issuer" LP 1276627

This was never correct behavior, but is now completely redundant
since fixing the add identity dialog to require the user to specify
issuer.

10 years agoRequire minimal set of fields when adding a new card. LP 1240008
Kevin Wasserman [Mon, 17 Mar 2014 19:50:42 +0000 (15:50 -0400)]
Require minimal set of fields when adding a new card. LP 1240008

Always require display name, username, issuer.
Require password when 'remember password' is selected.

10 years agoMake identities.txt private to the current user. LP #1291476.
Kevin Wasserman [Fri, 14 Mar 2014 17:32:45 +0000 (13:32 -0400)]
Make identities.txt private to the current user. LP #1291476.

10 years agoDon't create duplicate identities. LP 1180914.
Kevin Wasserman [Fri, 14 Mar 2014 15:49:01 +0000 (11:49 -0400)]
Don't create duplicate identities. LP 1180914.

When adding a new identity, replace any existing identity with the same nai.
Provide appropriate confirmation dialog if gui is available.