summaryrefslogtreecommitdiffstats
path: root/api/user_test.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-11-03 10:41:11 -0400
committerChristopher Speller <crspeller@gmail.com>2016-11-03 10:41:11 -0400
commit0234f793f29a90572d2288b7b22b75cd5ab83648 (patch)
tree76f67d1be0756c9186973f4db27a77643efcdfeb /api/user_test.go
parent5b34ac6e1e4d24f51c754926305149b7986f38c4 (diff)
downloadchat-0234f793f29a90572d2288b7b22b75cd5ab83648.tar.gz
chat-0234f793f29a90572d2288b7b22b75cd5ab83648.tar.bz2
chat-0234f793f29a90572d2288b7b22b75cd5ab83648.zip
EE: PLT-4512 Show secret in addition to QR code when activating MFA (#4427)
* EE: Update MFA to display secret for manual entry * Width adjustments for secret (#4423) * Add unit test
Diffstat (limited to 'api/user_test.go')
-rw-r--r--api/user_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/user_test.go b/api/user_test.go
index 75e246ab3..5f7cc375d 100644
--- a/api/user_test.go
+++ b/api/user_test.go
@@ -1687,7 +1687,7 @@ func TestMeInitialLoad(t *testing.T) {
}
-func TestGenerateMfaQrCode(t *testing.T) {
+func TestGenerateMfaSecret(t *testing.T) {
th := Setup()
Client := th.CreateClient()
@@ -1701,13 +1701,13 @@ func TestGenerateMfaQrCode(t *testing.T) {
Client.Logout()
- if _, err := Client.GenerateMfaQrCode(); err == nil {
+ if _, err := Client.GenerateMfaSecret(); err == nil {
t.Fatal("should have failed - not logged in")
}
Client.Login(user.Email, user.Password)
- if _, err := Client.GenerateMfaQrCode(); err == nil {
+ if _, err := Client.GenerateMfaSecret(); err == nil {
t.Fatal("should have failed - not licensed")
}