fix: a user register bug

This commit is contained in:
simba 2019-09-26 23:26:34 +08:00
parent fe00d39bc1
commit 437e2c602a

View File

@ -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,
} }