Commit graph

1153 commits

Author SHA1 Message Date
Bilal Elmoussaoui
733af58e89 otp: implement steam algorithm
fixes #115
2021-01-23 02:53:53 +01:00
Bilal Elmoussaoui
e40843c102 add initial scanning from a camera stream
closes #107
2021-01-23 01:41:57 +01:00
Bilal Elmoussaoui
3c5898fbe9 otp uri: use a period if it's not a hotp 2021-01-23 00:14:47 +01:00
Bilal Elmoussaoui
f101f69be7 providers page: fix rename leftover issue 2021-01-23 00:14:32 +01:00
Bilal Elmoussaoui
ffedc21896 provider row: pass a strong ref of self
this should avoid being dropped somehow which could cause #209

Should fix #209
2021-01-23 00:13:28 +01:00
Bilal Elmoussaoui
7f088c0218 otp uri: don't use a counter if it's not a hotp 2021-01-22 23:12:12 +01:00
Bilal Elmoussaoui
8b65abd83c meson: set env variables & timeout for cargo tests 2021-01-22 22:53:18 +01:00
Bilal Elmoussaoui
c81bff0d0d move more binding stuff to ui files 2021-01-22 22:47:19 +01:00
Bilal Elmoussaoui
c7d66ad91e ui files cleanup 2021-01-22 22:16:39 +01:00
Bilal Elmoussaoui
b79ede5f73 meson: add cargo tests
this will make our tests run on the CI for free without extra setup
2021-01-22 21:53:31 +01:00
Bilal Elmoussaoui
5181f5c2d1 fix otp tests 2021-01-22 21:51:33 +01:00
Bilal Elmoussaoui
fac2ae8ad5 rustfmt: run with automerge enabled 2021-01-22 21:40:48 +01:00
Bilal Elmoussaoui
adab1fd7f3 migrations: resync from twofactorauth 2021-01-22 21:38:29 +01:00
Bilal Elmoussaoui
f9204f4d30 add a doap file
fixes #218
2021-01-22 21:28:06 +01:00
Bilal Elmoussaoui
d58ffb787a track can-be-locked state in app & fixes password page issues
fixes #211
2021-01-22 21:25:25 +01:00
Bilal Elmoussaoui
1d35693007 use adw instead of libadwaita 2021-01-22 20:25:02 +01:00
Bilal Elmoussaoui
bffea44ee2 sync app password state using a property 2021-01-22 20:01:09 +01:00
Bilal Elmoussaoui
e58cab08bc Merge branch 'fix-2fa-gen' into 'master'
row: Adds a correction to account for app init

See merge request World/Authenticator!173
2021-01-22 17:47:27 +00:00
Maximiliano Sandoval R
412f5d95b1
row: Make the callback run once at correct time 2021-01-22 18:33:35 +01:00
Maximiliano Sandoval R
df2406bf27
row: Dispose of the tick callback on dipose() 2021-01-22 17:54:38 +01:00
Maximiliano Sandoval R
fc5741d127
Handle errors in otp generation 2021-01-22 16:59:03 +01:00
Maximiliano Sandoval R
fae9b39c04
provider_row: Red progress when less than 6 secs
margins to fix the bar cropping out of the listbox.
2021-01-22 16:59:03 +01:00
Maximiliano Sandoval R
b199cdaa91
utils: Add a function to format codes
If the number of digits is even, inserts an empty space in the middle.

HINT: Most codes are 6 digits long, except steam of course.
2021-01-22 16:59:03 +01:00
Maximiliano Sandoval R
e9499bd428
account_row: Increase size of code
Rather than using margin on the CSS use spacing on the box containing
the labels and buttons.
2021-01-22 16:59:03 +01:00
Maximiliano Sandoval R
59c748f61f
Fix OTP generation 2021-01-22 16:59:02 +01:00
Maximiliano Sandoval R
2630089c47
Update the bar at the start of a cycle
If we update the bar when time <= 0.0001 we will get the previous counter.
2021-01-22 16:59:02 +01:00
Maximiliano Sandoval R
c884e8c146
Update progress bar on each frame
Rather than on a 20 millis timeout, which provides less than 60fps.
2021-01-22 15:58:30 +01:00
Maximiliano Sandoval R
f57b702072
row: Adds a correction to account for app init
If app starts at 00:00:42 instead of 00:00:00, a 12 should be
subtracted to see the actual time at which the current code was
generated, which happens each 30 secs.
2021-01-22 15:34:29 +01:00
Daniel Șerbănescu
cbbaa1070b Update Romanian translation 2021-01-21 19:45:46 +00:00
Bilal Elmoussaoui
d5b2459a26 Merge branch 'update' into 'master'
Update deps & port to libadwaita

See merge request World/Authenticator!172
2021-01-21 18:17:20 +00:00
Maximiliano Sandoval R
a38d1580c7
Port from libhandy to libadwaita 2021-01-21 19:05:09 +01:00
Maximiliano Sandoval R
b6457b8190
Cargo.lock: Update dependencies 2021-01-21 18:47:50 +01:00
Fabio Tomat
a62be1de06 Update Friulian translation 2021-01-21 06:58:39 +00:00
sicklylife
c1e803fd1f Update Japanese translation 2021-01-17 01:24:53 +00:00
Bilal Elmoussaoui
5ab811ddf2 Merge branch 'wip/cdavis/use-shortcuts' into 'master'
Use GtkShortcut instead of GtkEventControllerKey

See merge request World/Authenticator!170
2021-01-14 22:07:12 +00:00
Christopher Davis
3c5f426e37 account_add: Use GtkShortcut instead of event controller
GtkShortcut is much cleaner than manually adding the
GtkEventControllerKey and checking for the right key.
2021-01-14 13:54:41 -08:00
Christopher Davis
5dd1e721a6 providers_dialog: Use GtkShortcut instead of event controller
This is much cleaner and can be done within the UI file.
2021-01-14 13:51:07 -08:00
Bilal Elmoussaoui
edd2553b33 Merge branch 'wip/cdavis/remove-get' into 'master'
Update gtk-rs deps and template usage

See merge request World/Authenticator!169
2021-01-14 21:36:24 +00:00
Christopher Davis
894ee49255 widgets: Use instance_init() for init_template()
This is the correct place to call init_template(),
not constructed()
2021-01-14 13:24:06 -08:00
Christopher Davis
2c63fd2893 accounts: Stop using get() for template children
Now that TemplateChild implements Deref, we don't need .get()
2021-01-14 13:08:27 -08:00
Christopher Davis
b6a066d607 preferences: Stop using get() for template children
Now that TemplateChild implements Deref, .get()
is no longer needed.
2021-01-14 13:03:10 -08:00
Christopher Davis
d05d3e2043 providers: Stop using .get() for template children
Now that TemplateChild implements Deref, .get()
isn't needed.
2021-01-14 12:58:57 -08:00
Christopher Davis
ba79a0aa10 window: Remove use of .get() for template children
Now that Deref is implemented for TemplateChild,
.get() is not needed.
2021-01-14 12:46:55 -08:00
Christopher Davis
a79bcb5845 Update gtk-rs deps
Updates our gtk-rs deps and makes use of gdk's
key API
2021-01-14 12:45:05 -08:00
Piotr Drąg
94998bd61b Update Polish translation 2021-01-10 17:21:28 +00:00
Yuri Chornoivan
f204816518 Update Ukrainian translation 2021-01-10 07:44:25 +00:00
Bilal Elmoussaoui
b8ff9873ab fixes #217
along with some metainfo/desktop cleanup
2021-01-10 01:31:29 +01:00
Bilal Elmoussaoui
28e5f61075 sync the qrcode paintable thingy 2021-01-10 01:22:28 +01:00
Bilal Elmoussaoui
c7b5ca9718 update per latest gtk-rs changes 2021-01-10 00:57:38 +01:00
Bilal Elmoussaoui
9d82a33c80 favicons: use a shared client 2021-01-09 21:44:56 +01:00