feat(cli): adds command to reset admin password

closes #5479
This commit is contained in:
bergquist
2016-12-09 15:25:02 +01:00
parent cd85e1f651
commit 96e8ecfa7b
5 changed files with 23 additions and 10 deletions
+6
View File
@@ -10,6 +10,12 @@ var (
ErrUserNotFound = errors.New("User not found")
)
type Password string
func (p Password) IsWeak() bool {
return len(p) <= 4
}
type User struct {
Id int64
Version int