Attempt to fix username validation ruby.

This commit is contained in:
Bryce Johnson 2016-10-10 16:54:55 +02:00
parent 85db5ba847
commit 5439bd9f95
1 changed files with 1 additions and 1 deletions

View File

@ -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