Browse Source

fix: a user register bug

master
simba 6 years ago
parent
commit
437e2c602a
  1. 2
      code/rest/user_controller.go

2
code/rest/user_controller.go

@ -158,7 +158,7 @@ func (this *UserController) Register(writer http.ResponseWriter, request *http.R
Role: USER_ROLE_USER, Role: USER_ROLE_USER,
Username: username, Username: username,
Password: util.GetBcrypt(password), Password: util.GetBcrypt(password),
SizeLimit: preference.DefaultTotalSizeLimit, TotalSizeLimit: preference.DefaultTotalSizeLimit,
Status: USER_STATUS_OK, Status: USER_STATUS_OK,
} }

Loading…
Cancel
Save