proxy: update vendor

Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
Evan Hazlett 2017-07-29 22:50:48 -04:00
parent 7574b334cc
commit 15619b08f8
No known key found for this signature in database
GPG key ID: A519480096146526
592 changed files with 148411 additions and 20678 deletions

View file

@ -0,0 +1,15 @@
package basic
import (
"fmt"
"strings"
)
// Reject any password encoded using bcrypt.
func RejectBcrypt(src string) (EncodedPasswd, error) {
if strings.HasPrefix(src, "$2y$") {
return nil, fmt.Errorf("bcrypt passwords are not accepted: %s", src)
}
return nil, nil
}