Skip to content

Commit

Permalink
Merge pull request #10666 from danidoni/fix-misleading-error-message
Browse files Browse the repository at this point in the history
Fix misleading error message
  • Loading branch information
dmarcoux committed Jan 21, 2021
2 parents 6a22f87 + f8a8244 commit 42b7370
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/app/controllers/person_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ def login
render_ok # just a dummy check for the webui to call (for now)
end

# Returns a list of all users (that optionally start with a prefix)
def command
if params[:cmd] == 'register'
internal_register
return
end
raise UnknownCommandError, "Allowed commands are 'change_password'"
raise UnknownCommandError, "Allowed command is 'register'"
end

def get_userinfo
Expand Down

0 comments on commit 42b7370

Please sign in to comment.