Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Added support for stoken
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos Mavrogiannopoulos committed Oct 13, 2014
1 parent 40e3dda commit f628278
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion editdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,17 @@ static int token_tab(int mode)
return 0;
case OC_TOKEN_MODE_TOTP:
return 1;
case OC_TOKEN_MODE_STOKEN:
return 2;
default:
return -1;
}
}

int token_rtab[] = {
[0] = OC_TOKEN_MODE_HOTP,
[1] = OC_TOKEN_MODE_TOTP
[1] = OC_TOKEN_MODE_TOTP,
[2] = OC_TOKEN_MODE_STOKEN
};

EditDialog::EditDialog(QString server, QSettings *settings, QWidget *parent) :
Expand Down
7 changes: 6 additions & 1 deletion editdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
</size>
</property>
<property name="currentIndex">
<number>-1</number>
<number>0</number>
</property>
<property name="maxVisibleItems">
<number>3</number>
Expand All @@ -351,6 +351,11 @@
<string notr="true">TOTP (RFC6238)</string>
</property>
</item>
<item>
<property name="text">
<string>STOKEN (RSA)</string>
</property>
</item>
</widget>
</item>
<item>
Expand Down

0 comments on commit f628278

Please sign in to comment.