commit 34bf2607b36806d4c21fc0a706e688c65009ca5a
parent 261c1836e905be018d83dbaea7b958c5b2b2d727
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 29 Sep 2021 23:04:38 +0200
-switch to 8 digits
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_handle-challenge-totp.c b/src/anastasis/anastasis-gtk_handle-challenge-totp.c
@@ -103,7 +103,7 @@ anastasis_gtk_c_totp_dialog_answer_entry_changed_cb (GtkEntry *entry,
"anastasis_gtk_c_totp_entry"));
as = gtk_entry_get_text (a);
ok = ( (NULL != as) &&
- (6 == strlen (as)) &&
+ (8 == strlen (as)) &&
(1 == sscanf (as,
"%u%c",
&pin,
diff --git a/src/anastasis/anastasis-gtk_handle-method-totp.c b/src/anastasis/anastasis-gtk_handle-method-totp.c
@@ -116,7 +116,7 @@ refresh_totp (GtkBuilder *builder)
sizeof (totp),
base_sec);
GNUNET_asprintf (&uri,
- "otpauth://totp/%s?secret=%s",
+ "otpauth://totp/%s?digits=8&secret=%s",
u_name,
base_sec);
GNUNET_free (u_name);