aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.lisp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.lisp b/src/main.lisp
index 2db13a4..abf5405 100644
--- a/src/main.lisp
+++ b/src/main.lisp
@@ -665,8 +665,9 @@ is an API Access token."
(unless (or (eq who (api-contributor token))
(adminp (api-contributor token)))
(http-err 403 "Cannot change that password."))
- (unless (is-current-password-p who current)
- (http-err 400 "The old password is incorrect."))
+ (unless (or (adminp (api-contributor token))
+ (is-current-password-p who current))
+ (http-err 400 "The old password is incorrect"))
(unless (equalp value repeated)
(http-err 400 "The two passwords do not match."))
(update-password who value)