mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
gosec is good
This commit is contained in:
parent
d90d447281
commit
c15b480004
|
|
@ -204,7 +204,7 @@ linters:
|
||||||
- gocritic
|
- gocritic
|
||||||
- gofmt
|
- gofmt
|
||||||
- golint
|
- golint
|
||||||
- gosec
|
- gosec # Should turn back on soon
|
||||||
- interfacer
|
- interfacer
|
||||||
- lll
|
- lll
|
||||||
- maligned
|
- maligned
|
||||||
|
|
|
||||||
|
|
@ -108,21 +108,24 @@ var (
|
||||||
// remembered. If ANY parameters are supplied, the server should REPLACE all knowledge of
|
// remembered. If ANY parameters are supplied, the server should REPLACE all knowledge of
|
||||||
// previous parameters with the ones supplied. This mean you cannot "build up" request params.
|
// previous parameters with the ones supplied. This mean you cannot "build up" request params.
|
||||||
type registerRequest struct {
|
type registerRequest struct {
|
||||||
// registration parameters
|
|
||||||
Password string `json:"password"`
|
|
||||||
Username string `json:"username"`
|
|
||||||
Admin bool `json:"admin"`
|
|
||||||
// user-interactive auth params
|
// user-interactive auth params
|
||||||
Auth authDict `json:"auth"`
|
Auth authDict `json:"auth"`
|
||||||
|
|
||||||
InitialDisplayName *string `json:"initial_device_display_name"`
|
// registration parameters
|
||||||
|
Password string `json:"password"`
|
||||||
// Prevent this user from logging in
|
Username string `json:"username"`
|
||||||
InhibitLogin common.WeakBoolean `json:"inhibit_login"`
|
|
||||||
|
|
||||||
// Application Services place Type in the root of their registration
|
// Application Services place Type in the root of their registration
|
||||||
// request, whereas clients place it in the authDict struct.
|
// request, whereas clients place it in the authDict struct.
|
||||||
Type authtypes.LoginType `json:"type"`
|
Type authtypes.LoginType `json:"type"`
|
||||||
|
|
||||||
|
InitialDisplayName *string `json:"initial_device_display_name"`
|
||||||
|
|
||||||
|
// more reg params
|
||||||
|
Admin bool `json:"admin"`
|
||||||
|
|
||||||
|
// Prevent this user from logging in
|
||||||
|
InhibitLogin common.WeakBoolean `json:"inhibit_login"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type authDict struct {
|
type authDict struct {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue