Merge pull request #7812 from tobiasd/20191103-tarpid
a hidden field for the registration form
This commit is contained in:
		
				commit
				
					
						4daa3d37c1
					
				
			
		
					 3 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -261,6 +261,11 @@ class Register extends BaseModule
 | 
			
		|||
 | 
			
		||||
				$a->internalRedirect('register/');
 | 
			
		||||
			}
 | 
			
		||||
			// Is there text in the tar pit?
 | 
			
		||||
			if (!empty($_POST('registertarpit'))) {
 | 
			
		||||
				\notice(L10n::t('You have entered too much information.'));
 | 
			
		||||
				$a->internalRedirect('register/');
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,6 +56,7 @@
 | 
			
		|||
 | 
			
		||||
{{if $permonly}}
 | 
			
		||||
    {{include file="field_textarea.tpl" field=$permonlybox}}
 | 
			
		||||
	<input type="input" id="registertarpit" style="display: none;" placeholder="Don't enter anything here" />
 | 
			
		||||
{{/if}}
 | 
			
		||||
 | 
			
		||||
	{{$publish nofilter}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -56,6 +56,7 @@
 | 
			
		|||
 | 
			
		||||
		{{if $permonly}}
 | 
			
		||||
		{{include file="field_textarea.tpl" field=$permonlybox}}
 | 
			
		||||
		<input type="input" id="registertarpit" style="display: none;" placeholder="Don't enter anything here"/>
 | 
			
		||||
		{{/if}}
 | 
			
		||||
 | 
			
		||||
		{{$publish nofilter}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue