mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
Merge pull request #886 from rithujohn191/error-msg-update
storage/static.go: correct the error message that gets displayed.
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user