Merge branch 'patch-min_password_length' into 'master'

Create a util function to remove duplication

See merge request !866
1 job from master in 2 minutes and 47 seconds (queued for 1 second)
Status Job ID Name Coverage
  Syntax
passed #495
syntax:lint

00:02:47