diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-24 20:43:58 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-10-24 20:43:58 +0200 | 
| commit | 8400a356cf4e9945dcd956f04a398042925ce381 (patch) | |
| tree | c87b8746682606118106e628fa73dda11572c1d9 | |
| parent | 76cdc6be4bd584aad19fa588a7dd452ab9958732 (diff) | |
maintenance, account: adjust to real-world conditions on travelynx.de
| -rw-r--r-- | lib/Travelynx/Command/maintenance.pm | 2 | ||||
| -rw-r--r-- | lib/Travelynx/Controller/Account.pm | 4 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/lib/Travelynx/Command/maintenance.pm b/lib/Travelynx/Command/maintenance.pm index 7baf762..7a8ae16 100644 --- a/lib/Travelynx/Command/maintenance.pm +++ b/lib/Travelynx/Command/maintenance.pm @@ -121,7 +121,7 @@ sub run {  	push( @uids_to_delete,  		$to_delete->arrays->map( sub { shift->[0] } )->each ); -	if ( @uids_to_delete > 10 ) { +	if ( @uids_to_delete > 60 ) {  		printf STDERR (  			"About to delete %d accounts, which is quite a lot.\n",  			scalar @uids_to_delete diff --git a/lib/Travelynx/Controller/Account.pm b/lib/Travelynx/Controller/Account.pm index 533e6eb..b0722f7 100644 --- a/lib/Travelynx/Controller/Account.pm +++ b/lib/Travelynx/Controller/Account.pm @@ -345,9 +345,9 @@ sub register {  	}  	if ( not $dt -		or DateTime->now( time_zone => 'Europe/Berlin' )->epoch - $dt < 6 ) +		or DateTime->now( time_zone => 'Europe/Berlin' )->epoch - $dt < 10 )  	{ -		# a human user should take at least five seconds to fill out the form. +		# a human user should take at least ten seconds to fill out the form.  		# Throw a CSRF error at presumed spammers.  		$self->render(  			'bad_request', | 
