diff --git a/app.moon b/app.moon index ead4215..569e918 100644 --- a/app.moon +++ b/app.moon @@ -94,7 +94,7 @@ class App extends lapis.Application [freeswitch: "/freeswitch"]: respond_to { POST: => uid = @params["user"] or @params["sip_auth_username"] - @user = Users\find id: uid + @user = Users\find extension: uid if not @user return status: 404, "no such user"