cirandas.net

commit 301bd051415c5b4c63cea6f9c5b3e9357601d844

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

controllers/public: fix typo on username login blocklist

 app/controllers/public/account_controller.rb | 2 +-


diff --git a/app/controllers/public/account_controller.rb b/app/controllers/public/account_controller.rb
index 1d9cb05d5fb1c3e3479906a2bac88fd9c1601c64..7f958193030541d0e89f7231c22002d347c3f664 100644
--- a/app/controllers/public/account_controller.rb
+++ b/app/controllers/public/account_controller.rb
@@ -117,7 +117,7 @@
           return
         end
 
-        if NOOSFERO_CONF['enable_antispam_blocklist'] && user.login.match(username_blocklist)
+        if NOOSFERO_CONF['enable_antispam_blocklist'] && @user.login.match(username_blocklist)
           session[:notice] = _('Login contains words that are on the block list!')
           render action: 'signup', status: :unprocessable_entity