Commit 5439bd9f authored by Bryce Johnson's avatar Bryce Johnson

Attempt to fix username validation ruby.

parent 85db5ba8
......@@ -86,7 +86,7 @@ class UsersController < ApplicationController
end
def exists
render json: { exists: User.where(username: params[:username].to_s).any? }
render json: { exists: !Namespace.where(name: params[:username]).nil? }
end
private
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment