Attempt to fix username validation ruby.
This commit is contained in:
parent
85db5ba847
commit
5439bd9f95
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue