Skip to content

Commit

Permalink
Fix bug: login fail in linux for web
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Oct 12, 2018
1 parent 4f4afb7 commit da92b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion login_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ func login(username, password string) bool {
}

c := crypt.NewFromHash(sp.sp_pwdp)
return c.Verify(sp.sp_pwdp, []byte(password)) != nil
return c.Verify(sp.sp_pwdp, []byte(password)) == nil
}

0 comments on commit da92b65

Please sign in to comment.