forked from mystiq/dex
storage/static.go: correct the error message that gets displayed.
This commit is contained in:
parent
5eb8210eb4
commit
5abb4b3df6
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ func (s staticPasswordsStorage) CreatePassword(p Password) error {
|
|||
|
||||
func (s staticPasswordsStorage) DeletePassword(email string) error {
|
||||
if s.isStatic(email) {
|
||||
return errors.New("static passwords: read-only cannot create password")
|
||||
return errors.New("static passwords: read-only cannot delete password")
|
||||
}
|
||||
return s.Storage.DeletePassword(email)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue