Enable password field type without need to quote

This commit is contained in:
Tobie Morgan Hitchcock 2017-12-05 01:13:50 +00:00
parent 2087ea5fb5
commit e27a9e78a7

View file

@ -220,7 +220,7 @@ func (p *parser) parseDuration() (time.Duration, error) {
func (p *parser) parseType() (t, k string, err error) {
_, t, err = p.shouldBe(IDENT, STRING)
_, t, err = p.shouldBe(IDENT, STRING, PASSWORD)
if err != nil {
err = &ParseError{Found: t, Expected: allowedTypes}
return