Skip to content

Commit

Permalink
Fix misleading error message
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Jan 21, 2021
1 parent 79ed0dc commit f8a8244
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 f8a8244

Please sign in to comment.