mirror of
https://github.com/restic/restic.git
synced 2025-10-10 12:00:56 +00:00
Allow multiple retries for interactive password input
Restic used to quit if the repository password was typed incorrectly once. Restic will now ask the user again for the repository password if typed incorrectly. The user will now get three tries to input the correct password before restic quits.
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
|
||||
var (
|
||||
// ErrNoKeyFound is returned when no key for the repository could be decrypted.
|
||||
ErrNoKeyFound = errors.Fatal("wrong password or no key found")
|
||||
ErrNoKeyFound = errors.New("wrong password or no key found")
|
||||
|
||||
// ErrMaxKeysReached is returned when the maximum number of keys was checked and no key could be found.
|
||||
ErrMaxKeysReached = errors.Fatal("maximum number of keys reached")
|
||||
|
Reference in New Issue
Block a user