diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-09-26 14:09:04 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-09-26 14:09:04 +0200 |
commit | 68a5d98ff711be2069bf04e483466059284d324b (patch) | |
tree | eb8ff5120771b68e6d33f909a0fc599aad2be25e /contrib | |
parent | 0ef65d64802fda550ee341a2b53f597d7996ab68 (diff) | |
download | anastasis-gtk-68a5d98ff711be2069bf04e483466059284d324b.tar.gz anastasis-gtk-68a5d98ff711be2069bf04e483466059284d324b.tar.bz2 anastasis-gtk-68a5d98ff711be2069bf04e483466059284d324b.zip |
add TOTP entry dialog
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Makefile.am | 1 | ||||
-rw-r--r-- | contrib/anastasis_gtk_auth_add_totp.glade | 205 |
2 files changed, 206 insertions, 0 deletions
diff --git a/contrib/Makefile.am b/contrib/Makefile.am index 897e61c..ad7c839 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -30,6 +30,7 @@ pkgdata_DATA = \ anastasis_gtk_auth_add_post.glade \ anastasis_gtk_auth_add_question.glade \ anastasis_gtk_auth_add_sms.glade \ + anastasis_gtk_auth_add_totp.glade \ anastasis_gtk_auth_add_video.glade \ anastasis_gtk_challenge_code.glade \ anastasis_gtk_challenge_iban.glade \ diff --git a/contrib/anastasis_gtk_auth_add_totp.glade b/contrib/anastasis_gtk_auth_add_totp.glade new file mode 100644 index 0000000..83aea5d --- /dev/null +++ b/contrib/anastasis_gtk_auth_add_totp.glade @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.38.2 + +Copyright (C) 2019-2021 Anastasis SARL + +This file is part of anastasis-gtk. + +anastasis-gtk is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +anastasis-gtk is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with anastasis-gtk. If not, see <http://www.gnu.org/licenses/>. + +Author: Belen Pena, Christian Grothoff, Dennis Neufeld + +--> +<interface domain=""> + <requires lib="gtk+" version="3.12"/> + <!-- interface-license-type gplv3 --> + <!-- interface-name anastasis-gtk --> + <!-- interface-description Key backup and recovery --> + <!-- interface-copyright 2019-2021 Anastasis SARL --> + <!-- interface-authors Belen Pena, Christian Grothoff, Dennis Neufeld --> + <object class="GtkDialog" id="anastasis_gtk_b_totp_dialog"> + <property name="can-focus">False</property> + <property name="type-hint">dialog</property> + <signal name="response" handler="anastasis_gtk_b_totp_dialog_response_cb" swapped="no"/> + <child internal-child="vbox"> + <object class="GtkBox"> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child internal-child="action_area"> + <object class="GtkButtonBox"> + <property name="can-focus">False</property> + <property name="layout-style">end</property> + <child> + <object class="GtkButton" id="anastasis_gtk_b_email_dialog_btn_cancel"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="receives-default">False</property> + <property name="use-stock">True</property> + <property name="always-show-image">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="anastasis_gtk_b_email_dialog_btn_ok"> + <property name="label">gtk-ok</property> + <property name="visible">True</property> + <property name="sensitive">False</property> + <property name="can-focus">False</property> + <property name="can-default">True</property> + <property name="has-default">True</property> + <property name="receives-default">False</property> + <property name="use-stock">True</property> + <property name="always-show-image">True</property> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel" id="explainer_label"> + <property name="name">explainer_label</property> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes">For TOTP authentication, you need to set a name for the TOTP secret. +Then, you must scan the generated QR code with your TOTP App to +import the TOTP secret it into your TOTP App. +<b>Make sure to scan the QR code before closing this dialog!</b></property> + <property name="use-markup">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="padding">20</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="margin-bottom">50</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="halign">start</property> + <property name="margin-start">25</property> + <property name="margin-end">25</property> + <property name="label" translatable="yes">TOTP Name</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">5</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="anastasis_gtk_b_totp_dialog_name_entry"> + <property name="visible">True</property> + <property name="can-focus">True</property> + <property name="has-focus">True</property> + <property name="margin-start">25</property> + <property name="margin-end">25</property> + <property name="hexpand">True</property> + <property name="activates-default">True</property> + <property name="width-chars">36</property> + <property name="text" translatable="yes">Anastasis</property> + <property name="primary-icon-stock">gtk-info</property> + <property name="input-purpose">name</property> + <signal name="changed" handler="anastasis_gtk_b_totp_dialog_name_entry_changed_cb" swapped="no"/> + </object> + <packing> + <property name="expand">True</property> + <property name="fill">True</property> + <property name="padding">5</property> + <property name="position">1</property> + </packing> + </child> + <child> + <object class="GtkImage" id="qr_image"> + <property name="name">qr_image</property> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="halign">center</property> + <property name="margin-start">25</property> + <property name="margin-end">25</property> + <property name="margin-top">25</property> + <property name="margin-bottom">25</property> + <property name="stock">gtk-missing-image</property> + <property name="icon_size">6</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">5</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="padding">5</property> + <property name="position">2</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="padding">5</property> + <property name="position">1</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget> + <action-widget response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget> + </action-widgets> + <child type="titlebar"> + <object class="GtkLabel"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="label" translatable="yes">Configure TOTP</property> + </object> + </child> + <action-widgets> + <action-widget response="-6">anastasis_gtk_b_email_dialog_btn_cancel</action-widget> + <action-widget response="-5">anastasis_gtk_b_email_dialog_btn_ok</action-widget> + </action-widgets> + </object> +</interface> |