Emil Lundberg
0ea5f8f486
Upgrade ykman
2018-02-01 17:09:47 +01:00
Emil Lundberg
c1129ae3c5
Add logging_setup.py
2018-02-01 17:09:07 +01:00
Emil Lundberg
9362571c45
Add --log-file CLI option
2018-01-31 18:58:48 +01:00
Emil Lundberg
66efc7a89e
Ensure logging is initialized before loading yubikey module
2018-01-31 17:47:49 +01:00
Emil Lundberg
f0ccbe736e
Extract function runQueue in YubiKey.qml
2018-01-31 17:47:49 +01:00
Emil Lundberg
13935b64e8
Use module ykman.logging_setup instead of local module
2018-01-31 17:47:48 +01:00
Emil Lundberg
280bc3619e
Fix CredentialItem custom time bar getting stuck at 100%
2018-01-30 14:03:48 +01:00
Emil Lundberg
a19c199405
Split property showCustomTimeBar out from hasCustomTimeBar
2018-01-30 14:03:33 +01:00
Emil Lundberg
b636fbc8d9
Replace < with <= in isExpired: timeLeft < 0
2018-01-30 14:03:00 +01:00
Emil Lundberg
ab5219d41d
Compute isExpired internally in CredentialItem
2018-01-30 13:22:11 +01:00
Emil Lundberg
39b9f4801a
Promote timeLeft variable to a property of CredentialItem
2018-01-30 13:22:11 +01:00
Dag Heyman
4373dec917
Merge branch 'qr-fix'
2018-01-30 11:32:57 +01:00
Dag Heyman
b4eeaf51f2
Fix error in QR parsing
2018-01-30 09:11:55 +01:00
Dag Heyman
3ec597e21e
Block UI from refreshing credentials too often
...
With this fix, no extra refresh credentials calls
can be made while there is already one in progress.
This should help prevent hanging UI on slower systems.
2018-01-29 14:20:26 +01:00
Dag Heyman
9041729f8e
Handle timeout on touch credentials better
...
When the user didn't touch the device on
a touch credential, the code was undefined.
Slot mode already handled this better.
2018-01-29 11:50:07 +01:00
Dag Heyman
f39d0d3fb7
Autoformat utils.js
2018-01-15 10:42:58 +01:00
Emil Lundberg
8c2c33d1df
Update new reference to deleted Util.qml
2018-01-15 10:28:02 +01:00
Emil Lundberg
0e3c3748a1
Merge branch 'master' into merge-utils
2018-01-15 10:26:41 +01:00
Dag Heyman
c1fbd93b78
Merge branch 'hide-timer'
2018-01-15 10:22:36 +01:00
Emil Lundberg
3f679d4f69
Merge Util.qml into utils.js
2018-01-15 10:12:50 +01:00
Dag Heyman
6f6fd2bd8f
Hide global progress bar
...
When no non-touch TOTP credential
is present, there is no need to show
the global progress bar.
2018-01-15 10:10:12 +01:00
Dag Heyman
831e8db20a
Obey auto-format
...
http://doc.qt.io/qtcreator/creator-checking-code-syntax.html#automatically-formatting-qml-js-files
2018-01-15 09:43:02 +01:00
Dag Heyman
0fb90de657
Update the year in the About dialog
2018-01-15 09:24:25 +01:00
Dag Heyman
8ed36faf62
Merge branch '222'
...
Fixes #222 and #226
2018-01-11 09:08:33 +01:00
Emil Lundberg
8c42005463
Merge pull request #228 from Yubico/cleanup-removed-device
...
Improve cleanup on removed device
2018-01-10 14:59:13 +01:00
Dag Heyman
0c214560d4
Merge branch 'slot-mode-errors'
2018-01-10 07:31:05 +01:00
Emil Lundberg
b5f0b448b2
Close touch prompt if code generation fails
2018-01-08 18:26:55 +01:00
Dag Heyman
24825ed5bf
Handle undefined version string
2018-01-04 08:39:58 +01:00
Dag Heyman
517d07f5d2
Slot mode: handle errors when updating cred
...
If the calculation in slot mode fails,
don't do anything.
2018-01-03 10:46:47 +01:00
Dag Heyman
773e12b6c4
Improve cleanup on removed device
...
This makes the UI behave better
when removing and re-inserting a device.
2018-01-03 10:44:47 +01:00
Dag Heyman
60a96f190a
Override copy action from search
...
Since the search field already have
an action on Ctrl/Cmd + C, we need to
override it to copy the credential code
to the clipboard from search.
2018-01-02 11:31:15 +01:00
Dag Heyman
6c4d17e872
Fix clear search on ESC pressed
...
Pressing escape now clears the
search field and removes the focus.
2018-01-02 09:25:26 +01:00
Dag Heyman
fc45b7ec99
Fix de-focus for searchfield
...
Clicking on the credential list or
on a credential should de-focus the
search field.
2018-01-02 09:21:36 +01:00
Emil Lundberg
99a6226f4c
Fix 1f6cefea
for Slot credentials
...
This fixes commit 1f6cefea4f
for Slot
credentials.
2017-12-19 13:02:32 +01:00
Emil Lundberg
925b011cda
Fix zero-impact null dereference bug in ArrowKeysSelecter
2017-12-17 00:25:52 +01:00
Emil Lundberg
d0d3fde9b2
Shim Array methods added after current Qt version in Ubuntu
2017-12-17 00:17:51 +01:00
Emil Lundberg
9e27de2d54
Add --log-level CLI option
2017-12-01 15:54:33 +01:00
Emil Lundberg
7a223dabb9
Enable setting up Python logging
2017-12-01 15:54:30 +01:00
Emil Lundberg
0eaff9c2ae
Decouple ArrowKeysSelecter from Repeater
2017-11-30 11:15:36 +01:00
Emil Lundberg
25c251788f
Whitespace: Fix indentation
2017-11-30 11:15:35 +01:00
Emil Lundberg
1be4433fef
Scroll view on arrow keys only if selection moves
2017-11-30 11:15:34 +01:00
Emil Lundberg
4e593d27cb
Use TextField.clear() instead of .text = ''
2017-11-30 11:15:33 +01:00
Emil Lundberg
175a2dc193
Don't focus arrowKeys on click or ESC
2017-11-30 11:15:32 +01:00
Emil Lundberg
4ff9042aeb
Start focus on search field
2017-11-30 11:15:31 +01:00
Emil Lundberg
e9de7619ea
Make getSelected call isSelected instead of vice versa
2017-11-30 11:15:29 +01:00
Emil Lundberg
acf998481a
Store selected key instead of model and index
2017-11-29 15:00:28 +01:00
Emil Lundberg
6604569500
Make selection stable across refreshes and continued searches
2017-11-29 15:00:28 +01:00
Emil Lundberg
da1d144817
Use selectCredential function in filteredCredentials
2017-11-29 15:00:27 +01:00
Emil Lundberg
590f9b100c
Extract function isSelected(credential)
2017-11-29 15:00:26 +01:00
Emil Lundberg
ee2567ddd4
Fix null dereference error for HOTP credentials
2017-11-29 15:00:25 +01:00
Emil Lundberg
d5544e98f2
Sort by period last instead of first
2017-11-29 15:00:23 +01:00
Emil Lundberg
bbd7ad87b1
Sort credentials immediately when created
2017-11-28 22:20:20 +01:00
Arthur Burkart
c8ab5b7b58
Enable arrow key navigation while search field has focus
2017-11-28 22:01:10 +01:00
Emil Lundberg
8f59352448
Display custom time bar for all touch credentials
2017-11-24 22:44:37 +01:00
Emil Lundberg
1f6cefea4f
Generate codes 10s into the future for touch credentials
2017-11-21 17:25:55 +01:00
Emil Lundberg
ad449fd1f8
Make some CredentialItem properties readonly
2017-11-21 17:00:33 +01:00
Emil Lundberg
fbd3ad41db
Prettify an if-else expression
2017-11-21 17:00:08 +01:00
Emil Lundberg
70684a0254
Rename property CredentialItem.expired to isExpired
2017-11-21 16:54:18 +01:00
Emil Lundberg
7009cbfa57
Prettify an if-else expression
2017-11-21 16:54:18 +01:00
Emil Lundberg
90abe7e11f
Eliminate unnecessary function hasCustomTimeBar
2017-11-21 16:54:17 +01:00
Emil Lundberg
ac85a2bbc1
Pass code and credential as properties to CredentialItem instead of modelData
2017-11-21 16:54:16 +01:00
Emil Lundberg
2367850930
Eliminate unnecessary function getCredentialTextColor
2017-11-21 16:54:15 +01:00
Emil Lundberg
eb2330be76
Remove some unnecessary newlines
2017-11-21 16:54:14 +01:00
Emil Lundberg
3978efc1bf
Prettify a long expression
2017-11-21 16:54:13 +01:00
Emil Lundberg
7c6b8c4b4f
Extract function selectCredential(entry, index)
2017-11-21 16:54:12 +01:00
Emil Lundberg
59b0d8d6c7
Compute CredentialItem color internally
2017-11-21 16:54:11 +01:00
Emil Lundberg
c41e104dc7
Use signal instead of implicit inheritance to refresh CredentialItem
2017-11-21 16:54:10 +01:00
Emil Lundberg
b01180827e
Use explicit timerRunning property in CredentialItem
2017-11-21 16:54:09 +01:00
Emil Lundberg
c2fa86cb72
Use signals for CredentialItem click events
2017-11-21 16:54:08 +01:00
Emil Lundberg
547f423767
Use signal instead of passing arrowKeys into CredentialItem
2017-11-21 16:54:07 +01:00
Emil Lundberg
aeab5b1be5
Extract QML type CredentialItem from main.qml
2017-11-21 16:54:06 +01:00
Emil Lundberg
a65154d1db
Remove running property from HOTP timers
...
This caused a bug where the "Touch your YubiKey ..." prompt would pop up
immediately on program start if the YubiKey is password protected and
the password is not stored.
2017-11-20 16:06:52 +01:00
Dain Nilsson
89f383d184
Show applet version in about.
2017-11-20 15:30:26 +01:00
Emil Lundberg
917af0e35c
Don't run display timers when minimized or missing device
...
This resolves #189 .
2017-11-17 19:22:01 +01:00
Emil Lundberg
9c6f67230a
Merge branch 'sstallion/hide-on-launch'
2017-11-16 18:34:17 +01:00
Emil Lundberg
f2e0a419f1
Prevent soft-locking by conflicting hide settings
2017-11-16 18:15:16 +01:00
Dain Nilsson
57f18ca943
Update for latest ykman changes to OATH.
2017-11-07 14:13:29 +01:00
Steven Stallion
9814125fcf
Add option to hide window on launch
2017-10-24 16:19:14 -05:00
Dag Heyman
f8c1925130
Improve error handling to prevent hanging UI
2017-09-28 09:41:36 +02:00
Dag Heyman
006df9f44d
refactor: remove dead get_features code
2017-09-25 10:24:44 +02:00
Dag Heyman
14a8e10c83
rotate progressbars to go the same direction as on android
2017-09-14 14:08:00 +02:00
Dag Heyman
10aeedd40a
adjust margin for custom timebar
2017-09-14 13:32:44 +02:00
Dag Heyman
cf74036bc5
Use long_name for hotp cool down logic
2017-09-14 12:27:02 +02:00
Dag Heyman
721e4c79b3
Fix scan QR code logic
2017-09-14 10:19:04 +02:00
Dag Heyman
480fd99022
fix issue where hotp creds was not generated by double click
2017-09-13 10:39:54 +02:00
Dag Heyman
67f9211c77
search should search on long_name
2017-09-13 10:12:27 +02:00
Dag Heyman
25cbaacfc8
fix custom timer for touch credentials
2017-09-13 10:10:56 +02:00
Dag Heyman
6839e14c2d
Add support for custom periods
...
* Improve layout of add credential dialogs
* Scan QR no available from home screen
* Support 7 digit credentials
2017-09-12 16:21:38 +02:00
Dag Heyman
7bd20249bf
improve handling of issuer
2017-09-05 14:42:14 +02:00
Dag Heyman
a37d21f40b
ui: about page now closes on ESC
2017-08-16 14:13:24 +02:00
Dag Heyman
a80b35579b
ui: increase code size a bit
2017-08-16 09:35:13 +02:00
Dag Heyman
a885dbd3fe
ui: use relative pointsize for code
2017-08-15 14:20:56 +02:00
Dag Heyman
1697afcb7d
ui: fix scalable credential box
2017-08-15 13:52:10 +02:00
Dag Heyman
0165883698
ui: use font.pointSize for credentials
2017-08-15 13:11:06 +02:00
Dag Heyman
17b3b208d5
Always deselect credential with ESC
2017-08-15 09:25:10 +02:00
Dag Heyman
01cb66ddbd
UI: Add a space in the codes
2017-08-14 15:48:40 +02:00
Dag Heyman
78ae0f8c59
Add error message for too large keys in slot mode
...
Closes #171
2017-08-03 12:24:32 +02:00
Dag Heyman
0044c5b259
Try initialise credentials as empty list
2017-08-02 14:54:54 +02:00
Dag Heyman
49253d6f40
Try to fix issue where UI stuck on reading credentials
2017-08-02 14:09:10 +02:00
Dag Heyman
205fac48da
Small refactor in MenuBar
2017-08-02 10:58:37 +02:00
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