forked from GNUsocial/gnu-social
		
	some debugging for email registration routes
This commit is contained in:
		@@ -70,9 +70,14 @@ class EmailRegistrationPlugin extends Plugin
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        static $toblock = array('main/register', 'main/register/:code');
 | 
					        static $toblock = array('main/register', 'main/register/:code');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (in_array($path, $toblock) && $defaults['action'] != 'emailregister') {
 | 
					        if (in_array($path, $toblock)) {
 | 
				
			||||||
 | 
					            common_debug("Request came in for $path");
 | 
				
			||||||
 | 
					            if ($defaults['action'] != 'emailregister') {
 | 
				
			||||||
 | 
					                common_debug("Action is {$default['action']}, so: rejected.");
 | 
				
			||||||
 | 
					                $result = false;
 | 
				
			||||||
                return false;
 | 
					                return false;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return true;
 | 
					        return true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user