summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Eric Biggers <ebiggers@google.com> 2024-07-16 19:46:33 +0000
committer Eric Biggers <ebiggers@google.com> 2024-07-16 21:19:29 +0000
commit8020f1aa4dfea877f8c13be6a62d840b96cf8826 (patch)
treeacbb329f6d481454b918bd8ce0792697a8de7225 /api/api.go
parentc3eca001375901f94ed8f0e8a5dd6c87ed9defaf (diff)
LockSettingsShellCommand: improve an error message
Show an appropriate error message when trying to set a lock credential when the user already has one and the old credential wasn't provided. Previously the empty credential got passed down to LockPatternUtils#checkCredential(), resulting in an error of "Credential can't be null or empty" which was confusing in this context. Bug: 351910156 Test: locksettings set-pin 1234; locksettings set-pin 5678 Change-Id: Iaede42c5ea18fab1fc23d5c0dfd82da91c8019de
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions