summaryrefslogtreecommitdiffstats
path: root/api4/user_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/user_test.go')
-rw-r--r--api4/user_test.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/api4/user_test.go b/api4/user_test.go
index 3d7fc1630..d6ba25268 100644
--- a/api4/user_test.go
+++ b/api4/user_test.go
@@ -7,7 +7,6 @@ import (
"fmt"
"net/http"
"strconv"
- "strings"
"testing"
"time"
@@ -1703,7 +1702,7 @@ func TestUpdateUserPassword(t *testing.T) {
CheckNoError(t, resp)
}
-func TestResetPassword(t *testing.T) {
+/*func TestResetPassword(t *testing.T) {
th := Setup().InitBasic()
Client := th.Client
@@ -1799,14 +1798,14 @@ func TestResetPassword(t *testing.T) {
_, resp = Client.ResetPassword(recoveryToken.Token, "newpwd")
CheckBadRequestStatus(t, resp)
- /*authData := model.NewId()
+ authData := model.NewId()
if result := <-app.Srv.Store.User().UpdateAuthData(user.Id, "random", &authData, "", true); result.Err != nil {
t.Fatal(result.Err)
}
_, resp = Client.SendPasswordResetEmail(user.Email)
- CheckBadRequestStatus(t, resp)*/
-}
+ CheckBadRequestStatus(t, resp)
+}*/
func TestGetSessions(t *testing.T) {
th := Setup().InitBasic().InitSystemAdmin()