mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Fix address null bug.
This commit is contained in:
@ -293,6 +293,7 @@ func (c *ApiController) Login() {
|
||||
Type: "normal-user",
|
||||
DisplayName: userInfo.DisplayName,
|
||||
Avatar: userInfo.AvatarUrl,
|
||||
Address: []string{},
|
||||
Email: userInfo.Email,
|
||||
Score: score,
|
||||
IsAdmin: false,
|
||||
|
@ -91,8 +91,8 @@ func TestGetMaskedUsers(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
name: "1",
|
||||
args: args{users: []*User{{Password: "casdoor"},{Password: "casbin"}}},
|
||||
want: []*User{{Password: "***"},{Password: "***"}},
|
||||
args: args{users: []*User{{Password: "casdoor"}, {Password: "casbin"}}},
|
||||
want: []*User{{Password: "***"}, {Password: "***"}},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
|
Reference in New Issue
Block a user