We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610b409 commit 228fc6fCopy full SHA for 228fc6f
tests/unit_tests/auth_backend_test.go
@@ -58,11 +58,11 @@ func (suite *AuthenticationBackendTestSuite) TestAuthenticate(c *C) {
58
59
func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectPass(c *C) {
60
authBackend := authentication.InitJWTAuthenticationBackend()
61
- user := &models.User{
+ user := models.User{
62
Username: "haku",
63
Password: "Password",
64
}
65
- c.Assert(authBackend.Authenticate(user), Equals, false)
+ c.Assert(authBackend.Authenticate(&user), Equals, false)
66
67
68
func (suite *AuthenticationBackendTestSuite) TestAuthenticateIncorrectUsername(c *C) {
0 commit comments