Commit Graph

400 Commits

Author SHA1 Message Date
Dag Heyman
78c347f525
Enter to copy/generate
Enter now copies/generates the selected credential.
Escape clears the search field.
2017-08-01 16:29:31 +02:00
Dag Heyman
a4a7b63f21
Only double-click copies, not all generate
Change behaviour so that only double-click
copies touch credentials, and manual generate
action only generates them.
2017-07-31 13:52:06 +02:00
Dag Heyman
e32a58914b
Limit credential name to 64 chars
Should fix #170
2017-07-31 12:43:50 +02:00
Dag Heyman
52f5f4a583
fix bug from renaming 2017-07-07 13:52:39 +02:00
Dag Heyman
397defaeed
feature: double click to copy/generate
Double-click on a credential now copies
the code to the clipboard. If it is a touch or
HOTP credential a code is generated as well.

The generate code action also copies the code to
the clipboard.

Should resolve #146
2017-07-07 10:03:50 +02:00
Dag Heyman
a1e2c449e0
rename single click handler 2017-07-07 10:02:58 +02:00
Dag Heyman
90a0319daf
rename updateCredential function 2017-07-07 09:46:26 +02:00
Dag Heyman
2015c5fd77
ui: don't show timer if no credentials 2017-07-07 08:48:34 +02:00
Dag Heyman
96898834a6
click outside search should remove focus from it 2017-07-06 07:39:18 +02:00
Dag Heyman
7894af2be6
add a separator between generate and delete
as suggested in #146
2017-07-05 14:34:18 +02:00
Dag Heyman
f0bb5ff50f
text: copy > copy to clipboard 2017-07-05 14:32:56 +02:00
Steven Noonan
a288d7339b
qml/YubiKey.qml: refresh *at* deadline instead of 1 second *after* deadline
The wrong operator was used when comparing "now" to the "next refresh"
time.

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2017-07-05 13:50:16 +02:00
Dag Heyman
7be3c861be
Slot mode is always validated
Fix issue where time bar was not shown
in slot mode.
2017-07-05 13:46:08 +02:00
Dag Heyman
2ce685ef88
let the add credential btn be default 2017-07-05 13:45:19 +02:00
Steven Noonan
e421a125ca
PasswordPrompt: make "OK" button the default button when pressing 'Enter'
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2017-07-05 12:58:45 +02:00
Steven Noonan
606b603d5c
MainMenuBar: use Alt-F + 'x' for exit rather than Alt-F + 'e'
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
2017-07-05 12:53:54 +02:00
Dag Heyman
030484910c
Show error message when no space left
Should fix #153
2017-07-05 11:01:58 +02:00
Dag Heyman
ba554eca09
Update selected credential on update.
Should fix #167
2017-07-05 10:15:57 +02:00
Dag Heyman
e142a54c3e
don't parse empty saved pws 2017-07-05 10:14:03 +02:00
Dag Heyman
ec41083314
Rename valid window function 2017-05-12 10:02:13 +02:00
Dag Heyman
1c845cc788
Don't spawn window outside desktop area
On Windows, the main window could be spawned outside
the visible desktop, if the application was previously
used with multiple monitors.

Fixes #154
2017-05-11 15:25:50 +02:00
Dag Heyman
55ef30e912
More strict check when setting password 2017-05-11 08:53:48 +02:00
Dag Heyman
cc86c37adf
Workaround for segfault on Ubuntu 17.04 2017-05-10 09:50:22 +02:00
Dag Heyman
ac99a792b9
Don't try to check name if selected is undefined 2017-04-25 10:18:29 +02:00
Dag Heyman
e508269ff3
Update the selected credential on new code
After a credential has got a code from
a touch event on the YubiKey, update
the selected credential so that the code
may be copied to the clipboard.

Should fix #158
2017-04-25 10:16:58 +02:00
Dag Heyman
c345bad1ae
Fix spelling in comment 2017-04-25 10:16:13 +02:00
Dag Heyman
9531c3bfe4
Overwrite saved pw if already saved on system
Switch to JSON for stored passwords.
2017-04-10 10:26:37 +02:00
Dag Heyman
29ec5db8af
Don't clear password prompt before remembering 2017-04-10 09:16:49 +02:00
Dag Heyman
7fef2be38d
Update colors
- Progressbar has no custom styling
- Selected credential uses highlight color
- Credentials are colored "window" or "midlight"
- No font specified

Closes #129
2017-04-07 14:24:58 +02:00
Dag Heyman
b39343f1e4
Formatting from Qt Creator 2017-04-07 12:32:51 +02:00
Dag Heyman
af80945b23
Fix issue where password was set to none
All set passwords attempts cleared the password
because the dialog was cleared before accepted.
2017-04-07 12:31:39 +02:00
Dag Heyman
e0e59ddf64
Different wording in settings 2017-03-31 15:37:42 +02:00
Dag Heyman
8beda56cb2
Update tray functionality
When the tray option is enabled
closing the last window doesn't
close the application.
2017-03-31 11:14:22 +02:00
Dag Heyman
62bca0fc57
Add a menu to the tray icon 2017-03-30 14:52:13 +02:00
Dag Heyman
01adff59ef
Add basic systray icon toggled from settings 2017-03-30 13:14:24 +02:00
Dag Heyman
7aa692ee1c
Only reset selected on empty searches
Should resolve #142
2017-03-30 10:24:59 +02:00
Dag Heyman
ffb55773f3
Refactor out selected
The variables for selected credentials
was treated as global variables,
so it makes more sense to bind it to appWindow.
2017-03-30 10:23:04 +02:00
Dag Heyman
d1b2ad0580
Rename method 2017-03-30 10:00:07 +02:00
Dag Heyman
db125d0e61
Fix scroll state for touch/hotp credentials 2017-03-30 09:48:59 +02:00
Dag Heyman
f3b3916669
Minor fix. 2017-03-29 13:29:32 +02:00
Dag Heyman
b53a1d548c
Keep scroll position when creds change
Small hack to save the position of the
scrollbar before refreshing the credentials.
2017-03-29 12:08:19 +02:00
Dag Heyman
f33b57b866
Always flick on arrow press 2017-03-28 15:50:28 +02:00
Dag Heyman
e321bca972
Use flickable for scrolling
Flick when arrow keys are pressed.
2017-03-28 14:27:49 +02:00
Dag Heyman
2c6bba3add
Sort credentials based on name
Use the full name for sorting,
including issuer prefixes.

Fixes #136
2017-03-28 11:02:27 +02:00
Dag Heyman
42477bb740
Better error logging 2017-03-27 13:36:40 +02:00
Dag Heyman
f873e52adb
Add Edit menu for the credential actions 2017-03-22 14:45:33 +01:00
Dag Heyman
92c97003b7
Don't read settings if undefined 2017-03-22 13:14:41 +01:00
Dag Heyman
2364efff2d
Save window position and dimenensions in Settings 2017-03-22 12:24:02 +01:00
Dag Heyman
16431a7582
Add some Mnemonics to the menus
Should solve #127
2017-03-22 10:46:36 +01:00
Dag Heyman
d91f3e1b13
macOS: Close on Cmd + W 2017-03-22 10:02:07 +01:00
Dag Heyman
adb686c741
Let Cmd/Ctrl + F put focus on search 2017-03-22 09:29:58 +01:00
Dag Heyman
1e5e5ee2b7
Explicitly tab to search from arrowkeys 2017-03-21 15:51:37 +01:00
Dag Heyman
d79c86bcb5
When searching, select the top credential 2017-03-21 15:02:20 +01:00
Dag Heyman
86dcbc7d87
Credential rectangle should not have focus 2017-03-21 14:59:49 +01:00
Dag Heyman
70f0df20e6
Re-add spacing: 0 in credential list
Was removed in code cleanup but shouldn't
have been touched.

Could be the cause of #130
2017-03-21 13:16:06 +01:00
Dag Heyman
697dfd4794
Remove html a tag from About page
The html link doesn't respect users
color schemes.

This should close #128 together with 8073083
2017-03-21 10:42:35 +01:00
Dag Heyman
8073083dce
Use Label instead of Text
The Text object doesn't seem follow the color scheme,
while the Label object seems to do that.
2017-03-20 16:41:08 +01:00
Dag Heyman
313059cd63
Rename Main.qml > main.qml 2017-03-18 22:24:38 +01:00
Dag Heyman
46b6bfea5b
Switch focus to arrowkeys when tabbing from search 2017-03-18 22:20:52 +01:00
Dag Heyman
4b98c2ed65
Add confirmation after reset 2017-03-18 18:43:11 +01:00
Dag Heyman
287a08c4e7
Clear set password dialog 2017-03-18 18:27:40 +01:00
Dag Heyman
5e7c103ccb
Fix taborder in dialogs 2017-03-18 18:21:03 +01:00
Dag Heyman
439a084277
Add credential: fix taborder 2017-03-18 17:51:58 +01:00
Dag Heyman
ffd207b064
Close dialogs when escape pressed
TextFields needs to do this explicitly
2017-03-17 15:47:24 +01:00
Dag Heyman
8478bd7539
Remove duplicate error logging 2017-03-17 15:22:02 +01:00
Dag Heyman
7fb1f3ab81
Remove unused serial variable 2017-03-17 14:10:26 +01:00
Dag Heyman
1c3f44a210
Don't show credlist if mode mismatch settings 2017-03-17 14:02:44 +01:00
Dag Heyman
90b7980667
Minor cleanups 2017-03-17 13:52:13 +01:00
Dag Heyman
632b9fe8bc
Move out mouse handling in cred list 2017-03-17 13:15:48 +01:00
Dag Heyman
8deb89eb98
Move out get credential color logic 2017-03-17 12:52:34 +01:00
Dag Heyman
f9dd88eb3c
Move out timer bar 2017-03-17 12:45:43 +01:00
Dag Heyman
0a9df2be40
Move out ArrowKeys 2017-03-17 12:21:31 +01:00
Dag Heyman
0c425011eb
Move out delete credential confirmation 2017-03-17 11:13:14 +01:00
Dag Heyman
37e77cb2be
Move out credential menu 2017-03-17 11:01:59 +01:00
Dag Heyman
53fa0fed8a
Move out clipboard 2017-03-17 10:24:32 +01:00
Dag Heyman
35b63f6928
Move out loaded device message 2017-03-17 10:19:06 +01:00
Dag Heyman
212905cb47
Move out no loaded device message 2017-03-17 09:36:50 +01:00
Dag Heyman
daae82908d
Move out new device logic 2017-03-17 09:07:41 +01:00
Dag Heyman
f49646a15f
Move out reset dialog 2017-03-17 08:57:30 +01:00
Dag Heyman
98e8f0887e
Move att pw confirmation 2017-03-17 08:48:38 +01:00
Dag Heyman
9a6f681831
Modify set password checks 2017-03-16 16:34:00 +01:00
Dag Heyman
343cacce9b
Add a comment to settings 2017-03-16 15:41:26 +01:00
Dag Heyman
fe2ee4fa1b
SaveSettings in function 2017-03-16 15:40:51 +01:00
Dag Heyman
93a824ad41
Remove unused property 2017-03-16 15:40:12 +01:00
Dag Heyman
5b2a50d58e
Clearify can show cred property 2017-03-16 15:29:50 +01:00
Dag Heyman
c9c9dce00f
Move title logic to function 2017-03-16 15:10:15 +01:00
Dag Heyman
146d55b838
small refactor
open add new cred dialog is now a function
2017-03-16 14:59:30 +01:00
Dag Heyman
7d9ceb70ae
Move out menu to separate file 2017-03-16 14:47:26 +01:00
Dag Heyman
3ef28d9d4e
refactor: break out touch yubikey dialog 2017-03-16 14:13:54 +01:00
Dag Heyman
4f88c8f6de
Remove id from class 2017-03-16 14:06:21 +01:00
Dag Heyman
b1500a805e
Add missing qsTr wraps 2017-03-16 14:04:50 +01:00
Dag Heyman
a352091fc5
Tab should remove focus from search 2017-03-15 14:57:01 +01:00
Dag Heyman
eaa54d96d0
Update no QR code found dialog 2017-03-15 10:09:37 +01:00
Dag Heyman
1d33a45927
Remove (base32) label 2017-03-15 09:34:51 +01:00
Dag Heyman
6494a4c230
Allow accepting set password prompt with enter 2017-03-14 10:40:00 +01:00
Dag Heyman
f6af80c3e3
password prompt: input focus, accept on enter 2017-03-13 15:37:40 +01:00
Dag Heyman
0bc6c65397
Clear password prompt 2017-03-13 15:19:55 +01:00
Dag Heyman
cc81dffa99
Don't enable copy if no code is present 2017-03-13 15:01:09 +01:00
Dag Heyman
2e7cf4fd18
Don't show search bar when no credentials 2017-03-13 14:51:14 +01:00
Dag Heyman
6dadeb6c22
Add a dot. 2017-03-13 13:16:59 +01:00
Dag Heyman
735420632c
Disable menu items when no key present 2017-03-13 13:16:10 +01:00
Dag Heyman
c5b5611611
Move functions around 2017-03-09 10:49:42 +01:00
Dag Heyman
bc02a30978
Fix title concat 2017-03-09 10:38:35 +01:00
Dag Heyman
9a04699372
Use pixel size for fonts 2017-03-09 10:26:11 +01:00
Dag Heyman
9ceb544496
Ask for confirmation when overwriting slots 2017-03-08 16:12:45 +01:00
Dag Heyman
c4cbb89a0e
State used slots in add dialog 2017-03-08 16:07:12 +01:00
Dag Heyman
1fa8059443
Remove totp cooldowns 2017-03-08 14:50:50 +01:00
Dag Heyman
95c71c6181
Don't depend on totp cooldown 2017-03-08 14:41:56 +01:00
Dag Heyman
817d485334
Only gray out expired TOTP touch credentials. 2017-03-08 13:58:42 +01:00
Dag Heyman
9d7e9c37b7
Use DefaultDialog for dialogs 2017-03-08 10:21:25 +01:00
Dag Heyman
de9376cf58
Modify layout in add credential dialog 2017-03-08 09:54:53 +01:00
Dag Heyman
cd40c5d49f
Update cooldown logic 2017-03-08 08:56:40 +01:00
Dag Heyman
77fa78acac
Separate AddCredential and AddCredentialSlot 2017-03-07 15:16:10 +01:00
Dag Heyman
1152d45c7f
Modify background color on progressbar 2017-03-07 13:56:40 +01:00
Dag Heyman
6ae156c709
Update credential box spacing 2017-03-07 11:58:08 +01:00
Dag Heyman
0b14b24fd1
Use QtQuick 2.5 2017-03-07 09:10:22 +01:00
Dag Heyman
640894b9c8
Revert "Try to import qr module from qml"
This reverts commit 73e23d69ba.
2017-03-03 13:03:25 +01:00
Dag Heyman
73e23d69ba
Try to import qr module from qml 2017-03-03 11:50:33 +01:00
Dag Heyman
91490404f9
Try import pyotherside 1.5.0 2017-03-02 13:40:24 +01:00
Dag Heyman
0a099dab7b
Warn for overwrite on new credentials 2017-03-01 14:38:02 +01:00
Dag Heyman
22807d740d
Don't refresh codes when minimized 2017-03-01 13:17:47 +01:00
Dag Heyman
b8ce346012
Add remember password checkbox 2017-03-01 11:57:40 +01:00
Dag Heyman
e6387dbe8c
Checkbox for remember password 2017-02-28 15:16:22 +01:00
Dag Heyman
4e114a52a2
Split up validate and key derivation 2017-02-28 15:07:43 +01:00
Dag Heyman
1663ba50ab
Move expiration logic to YubiKey.qml 2017-02-28 13:20:44 +01:00
Dag Heyman
0c8375cf11
Update canShowCredentials property 2017-02-28 13:19:22 +01:00
Dag Heyman
d76c3e57dd
Add message for reading credentials 2017-02-28 12:30:02 +01:00
Dag Heyman
9ddbebce55
Don't show search and progressbar in invalid states 2017-02-28 12:29:23 +01:00
Dag Heyman
9bcfcdf402
Show slot mode in title 2017-02-28 12:25:04 +01:00
Dag Heyman
d956aae295
Formatting 2017-02-28 12:08:42 +01:00
Dag Heyman
f8439c485b
Better handling of missing modes. 2017-02-28 10:57:10 +01:00
Dag Heyman
2e16fc20f9
Error message when mode/connections mismatch 2017-02-28 10:04:46 +01:00
Dag Heyman
4d3384e7f5
Add a "No credentials." message. 2017-02-28 09:32:48 +01:00
Dag Heyman
9d78571f03
Only show digits in settings for slot 2017-02-27 14:22:07 +01:00
Dag Heyman
1c06a9b136
Add slot credential 2017-02-27 14:13:54 +01:00
Dag Heyman
4561e35718
Add credential for slot mode UI 2017-02-24 15:23:38 +01:00
Dag Heyman
460b40bcb2
Refresh correctly after adding cred 2017-02-24 13:52:44 +01:00
Dag Heyman
4ada4a4738
Delete slot credential 2017-02-23 16:00:17 +01:00
Dag Heyman
d4b0175f64
Disable password and reset in slot mode 2017-02-23 14:42:51 +01:00
Dag Heyman
8241a98130
Disable save settings button if slot mode + no slot 2017-02-23 14:31:27 +01:00
Dag Heyman
1e95b880c8
Support individual calculation of slot credentials 2017-02-23 13:51:44 +01:00
Dag Heyman
b50b63a94c
Force refresh on settings closed 2017-02-23 12:18:20 +01:00
Dag Heyman
66693a842c
First attempt at legacy slot mode 2017-02-23 10:40:24 +01:00
Dag Heyman
c6f9525ac8
Store settings in main, only update on accepted 2017-02-20 13:47:39 +01:00
Dag Heyman
f117e4de92
Add dialog for settings 2017-02-20 12:27:10 +01:00
Dag Heyman
3856c53e7b
Clear add credential dialog before show 2017-02-20 09:14:05 +01:00
Dag Heyman
51649216ca
Cooldown TOTP touch creds 2017-02-17 16:06:08 +01:00
Dag Heyman
8cb663f507
Refactor cooldown logic 2017-02-17 14:09:55 +01:00
Dag Heyman
fab548d238
Move around code 2017-02-17 10:50:17 +01:00
Dag Heyman
f11d3874bb
Add cooldown period for HOTP creds 2017-02-17 10:14:37 +01:00
Dag Heyman
084191e467
Add reset functionality 2017-02-17 08:52:34 +01:00
Dag Heyman
ab10894187
Modify set password logic 2017-02-16 15:22:20 +01:00
Dag Heyman
995fe31fdb
Don't allow empty credentials 2017-02-16 14:45:42 +01:00
Dag Heyman
075b421dd2
Show padding error in GUI 2017-02-16 14:14:14 +01:00
Dag Heyman
b65653ace9
Update arrow keys navigation 2017-02-16 11:25:15 +01:00
Dag Heyman
80b2075635
Add arrow key navigation 2017-02-16 11:07:41 +01:00
Dag Heyman
9451e280b9
Add shortcut for new credential 2017-02-16 10:04:54 +01:00
Dag Heyman
75afc6f7dc
Add some keyboard shortcuts 2017-02-16 09:55:47 +01:00
Dag Heyman
dfb445b66b
Add mouse logic, selectable credentials 2017-02-16 09:18:52 +01:00
Dag Heyman
1cb68308f0
Let dialogs be applications modal 2017-02-15 15:14:34 +01:00
Dag Heyman
e7a45abe7b
Support multiple monitors in QR scan 2017-02-15 15:00:30 +01:00
Dag Heyman
46fa7d8f6d
Fill add credential form on QR 2017-02-15 13:40:44 +01:00
Dag Heyman
2777c0c9d3
Convert screenshot to bitarray 2017-02-14 13:12:24 +01:00
Dag Heyman
6df435663b
Add frame for calling c++ screenshot code 2017-02-13 13:03:58 +01:00
Dag Heyman
f3fe3faf61
Input validation for secret key 2017-02-13 09:06:38 +01:00
Dag Heyman
dcfe627844
Add set password functionality 2017-02-10 14:01:49 +01:00
Dag Heyman
5fef9d5513
Add set password dialog 2017-02-10 12:44:10 +01:00
Dag Heyman
61fb0ff206
Hide some elements when no YubiKey 2017-02-10 09:51:01 +01:00
Dag Heyman
bdcfb58ce0
Update password logic 2017-02-09 10:57:28 +01:00
Dag Heyman
782da813f9
WIP: password handling 2017-02-08 16:47:28 +01:00
Dag Heyman
58074d3927
Store derived key in memory 2017-02-08 11:55:53 +01:00
Dag Heyman
8bc31b243d
Add password functionality 2017-02-07 14:17:54 +01:00
Dag Heyman
cf63e023fc
Rename variable for device 2017-02-07 10:12:22 +01:00
Dag Heyman
135d5c3b62
Add search/filter functionality 2017-02-06 15:57:32 +01:00
Dag Heyman
7d247ac5b5
Fixup search bar 2017-02-06 15:07:43 +01:00
Dag Heyman
44c940be64
Move out progressbar from scroll 2017-02-06 15:00:11 +01:00
Dag Heyman
c83f13ebf4
Don't anchor double parents 2017-02-06 14:50:38 +01:00
Dag Heyman
d41b9a23d2
Add a ScrollView 2017-02-06 13:42:17 +01:00
Dag Heyman
1ff60c930f
Fix add cred dialog. 2017-02-06 09:41:00 +01:00
Dag Heyman
834f44fccd
add QML clipboard hack 2017-02-03 22:54:13 +01:00
Dag Heyman
1513497951
Tweak UI 2017-02-03 22:28:57 +01:00
Dag Heyman
1597be9d8e
Tweak spacing 2017-02-03 21:07:07 +01:00
Dag Heyman
c70b291854
Add delete credential 2017-02-03 16:23:28 +01:00
Dag Heyman
2824e1a05e
Don't auto refresh HOTP and touch credentials 2017-02-03 13:58:22 +01:00
Dag Heyman
d7f692ffba
Add credential call added 2017-02-03 12:24:41 +01:00
Dag Heyman
e4887be6ea
Add add credential dialog 2017-02-03 09:58:17 +01:00
Dag Heyman
d82f1263fd
Update issuer handling 2017-02-02 15:44:49 +01:00
Dag Heyman
08003706a6
Refactor, put everything in Main.qml 2017-02-02 14:16:52 +01:00
Dag Heyman
5ec8509a77
Add touch your yubikey dialog 2017-02-02 11:09:20 +01:00
Dain Nilsson
e645ca4d8a
Auto-wrap/unwrap args passed to python in json. 2017-02-01 16:52:18 +01:00
Dag Heyman
2744161faf
Update json parsing 2017-02-01 16:27:45 +01:00
Dag Heyman
e6fb93bebb
Add a rectangle for the credentials 2017-02-01 13:32:10 +01:00
Dag Heyman
c1d2178c39
Update logic for refreshing credentials 2017-01-31 16:17:10 +01:00
Dag Heyman
ee060e344a
Add logic for issuer 2017-01-31 09:57:44 +01:00
Dag Heyman
0d99184dcb
Load credentials as JSON 2017-01-31 08:32:00 +01:00
Dag Heyman
0cc036b223
Update progressbar logic 2017-01-31 08:06:01 +01:00
Dag Heyman
98a432de05
Add timer 2017-01-30 16:12:50 +01:00
Dag Heyman
2a6ba79a7b
Add a credential list 2017-01-30 14:59:58 +01:00
Dag Heyman
6316c1b5e9
Cleanup 2017-01-27 14:28:06 +01:00
Dag Heyman
a1e99c99ed
Initial project structure, copied from yubikey-manager-qt 2017-01-27 13:55:38 +01:00