summaryrefslogtreecommitdiff
path: root/internal/validate/formvalidation.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/validate/formvalidation.go')
-rw-r--r--internal/validate/formvalidation.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/validate/formvalidation.go b/internal/validate/formvalidation.go
index 51efa320c..c109c26d8 100644
--- a/internal/validate/formvalidation.go
+++ b/internal/validate/formvalidation.go
@@ -46,9 +46,9 @@ const (
maximumListTitleLength = 200
)
-// NewPassword returns a helpful error if the given password
+// Password returns a helpful error if the given password
// is too short, too long, or not sufficiently strong.
-func NewPassword(password string) error {
+func Password(password string) error {
// Ensure length is OK first.
if pwLen := len(password); pwLen == 0 {
return errors.New("no password provided / provided password was 0 bytes")