mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-12 01:59:34 -05:00
Fixed tests
This commit is contained in:
@@ -75,6 +75,11 @@ func CreateUser(user User) (newUser User, err error) {
|
||||
return User{}, err
|
||||
}
|
||||
|
||||
// Dont send a mail if we're testing
|
||||
if IsTesting {
|
||||
return newUserOut, err
|
||||
}
|
||||
|
||||
// Send the user a mail with a link to confirm the mail
|
||||
data := map[string]interface{}{
|
||||
"User": newUserOut,
|
||||
|
||||
@@ -133,7 +133,6 @@ func TestUserPasswordReset(t *testing.T) {
|
||||
|
||||
// Try resetting it
|
||||
reset := &PasswordReset{
|
||||
UserID: 1,
|
||||
Token: userWithToken.PasswordResetToken,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user