Skip to content
Snippets Groups Projects
Commit 7246f047 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Prevent new users with username 'all'

parent 5794cff4
No related merge requests found
......@@ -5,6 +5,10 @@ slug = (text) ->
usernameIsAvaliable = (username) ->
if username.length < 1
return false
if username is 'all'
return false
return not Meteor.users.findOne({username: {$regex : new RegExp(username, "i") }})
@generateSuggestion = (user) ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment