You've already forked focalboard
mirror of
https://github.com/mattermost/focalboard.git
synced 2025-07-12 23:50:27 +02:00
Lint server & plugin for CI (#720)
* enable CI linting for server and plugin * replace `golint` (deprecated) with `revive` * use GH actions for lint
This commit is contained in:
@ -95,10 +95,7 @@ func (rd *RegisterRequest) IsValid() error {
|
||||
if rd.Password == "" {
|
||||
return ParamError{"password is required"}
|
||||
}
|
||||
if err := isValidPassword(rd.Password); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return isValidPassword(rd.Password)
|
||||
}
|
||||
|
||||
// ChangePasswordRequest is a user password change request
|
||||
@ -121,11 +118,7 @@ func (rd *ChangePasswordRequest) IsValid() error {
|
||||
if rd.NewPassword == "" {
|
||||
return ParamError{"new password is required"}
|
||||
}
|
||||
if err := isValidPassword(rd.NewPassword); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return isValidPassword(rd.NewPassword)
|
||||
}
|
||||
|
||||
func isValidPassword(password string) error {
|
||||
|
Reference in New Issue
Block a user